Skip to content
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

Merged
merged 3 commits into from
Apr 21, 2022

Conversation

LeoMax-Xiong
Copy link
Contributor

PR types

PR changes

Describe

add streaming asr demo

@LeoMax-Xiong LeoMax-Xiong linked an issue Apr 21, 2022 that may be closed by this pull request
@LeoMax-Xiong LeoMax-Xiong added this to the r1.0.0a milestone Apr 21, 2022
### 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).
Copy link
Collaborator

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',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ASRClientExecutor重复了

Copy link
Collaborator

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.
Copy link
Collaborator

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 这个文件保留

@zh794390558 zh794390558 changed the title [asr][websocket]add streaming asr demo, test=doc [asr][websocket]add streaming asr demo Apr 21, 2022
@LeoMax-Xiong LeoMax-Xiong self-assigned this Apr 21, 2022
Copy link
Collaborator

@zh794390558 zh794390558 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zh794390558 zh794390558 merged commit 08e0cf2 into PaddlePaddle:develop Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[asr][websocket]add streaming asr demo
2 participants