-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[asr][websocket]add streaming asr demo #1737
Conversation
demos/streaming_asr_server/README.md
Outdated
### 2. Prepare config File | ||
The configuration file can be found in `conf/application.yaml` . | ||
Among them, `engine_list` indicates the speech engine that will be included in the service to be started, in the format of `<speech task>_<engine type>`. | ||
At present, the speech tasks integrated by the service include: asr (speech recognition), tts (text to sppech) and cls (audio classification). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这部分针对性的修改下。这里只写流式的asr相关的内容。
from paddlespeech.server.utils.audio_process import wav2pcm | ||
from paddlespeech.server.utils.util import wav2base64 | ||
|
||
__all__ = ['TTSClientExecutor', 'ASRClientExecutor', 'CLSClientExecutor'] | ||
__all__ = [ | ||
'TTSClientExecutor', 'ASRClientExecutor', 'ASRClientExecutor', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ASRClientExecutor重复了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ASROnlineClientExecutor
@@ -0,0 +1,62 @@ | |||
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
paddlespeech/server/tests/asr/online/microphone_client.py 这个文件保留
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
PR changes
Describe
add streaming asr demo