Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
d21e6d8a
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
大约 2 年 前同步成功
通知
210
Star
8425
Fork
1598
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
245
列表
看板
标记
里程碑
合并请求
3
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DeepSpeech
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
245
Issue
245
列表
看板
标记
里程碑
合并请求
3
合并请求
3
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d21e6d8a
编写于
6月 17, 2022
作者:
H
Hui Zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix window ms config
上级
59a78f2a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
6 addition
and
6 deletion
+6
-6
demos/streaming_asr_server/conf/ws_ds2_application.yaml
demos/streaming_asr_server/conf/ws_ds2_application.yaml
+2
-2
demos/streaming_asr_server/local/websocket_client.py
demos/streaming_asr_server/local/websocket_client.py
+2
-0
demos/streaming_asr_server/test.sh
demos/streaming_asr_server/test.sh
+0
-2
paddlespeech/server/conf/ws_ds2_application.yaml
paddlespeech/server/conf/ws_ds2_application.yaml
+2
-2
未找到文件。
demos/streaming_asr_server/conf/ws_ds2_application.yaml
浏览文件 @
d21e6d8a
...
@@ -45,7 +45,7 @@ asr_online-inference:
...
@@ -45,7 +45,7 @@ asr_online-inference:
sample_width
:
2
sample_width
:
2
window_n
:
7
# frame
window_n
:
7
# frame
shift_n
:
4
# frame
shift_n
:
4
# frame
window_ms
:
2
0
# ms
window_ms
:
2
5
# ms
shift_ms
:
10
# ms
shift_ms
:
10
# ms
...
@@ -80,5 +80,5 @@ asr_online-onnx:
...
@@ -80,5 +80,5 @@ asr_online-onnx:
sample_width
:
2
sample_width
:
2
window_n
:
7
# frame
window_n
:
7
# frame
shift_n
:
4
# frame
shift_n
:
4
# frame
window_ms
:
2
0
# ms
window_ms
:
2
5
# ms
shift_ms
:
10
# ms
shift_ms
:
10
# ms
demos/streaming_asr_server/local/websocket_client.py
浏览文件 @
d21e6d8a
...
@@ -13,6 +13,8 @@
...
@@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# calc avg RTF(NOT Accurate): grep -rn RTF log.txt | awk '{print $NF}' | awk -F "=" '{sum += $NF} END {print "all time",sum, "audio num", NR, "RTF", sum/NR}'
# calc avg RTF(NOT Accurate): grep -rn RTF log.txt | awk '{print $NF}' | awk -F "=" '{sum += $NF} END {print "all time",sum, "audio num", NR, "RTF", sum/NR}'
# python3 websocket_client.py --server_ip 127.0.0.1 --port 8290 --punc.server_ip 127.0.0.1 --punc.port 8190 --wavfile ./zh.wav
# python3 websocket_client.py --server_ip 127.0.0.1 --port 8290 --wavfile ./zh.wav
import
argparse
import
argparse
import
asyncio
import
asyncio
import
codecs
import
codecs
...
...
demos/streaming_asr_server/test.sh
浏览文件 @
d21e6d8a
...
@@ -3,11 +3,9 @@ wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav
...
@@ -3,11 +3,9 @@ wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav
# read the wav and pass it to only streaming asr service
# read the wav and pass it to only streaming asr service
# If `127.0.0.1` is not accessible, you need to use the actual service IP address.
# If `127.0.0.1` is not accessible, you need to use the actual service IP address.
# python3 websocket_client.py --server_ip 127.0.0.1 --port 8290 --wavfile ./zh.wav
paddlespeech_client asr_online
--server_ip
127.0.0.1
--port
8090
--input
./zh.wav
paddlespeech_client asr_online
--server_ip
127.0.0.1
--port
8090
--input
./zh.wav
# read the wav and call streaming and punc service
# read the wav and call streaming and punc service
# If `127.0.0.1` is not accessible, you need to use the actual service IP address.
# If `127.0.0.1` is not accessible, you need to use the actual service IP address.
# python3 websocket_client.py --server_ip 127.0.0.1 --port 8290 --punc.server_ip 127.0.0.1 --punc.port 8190 --wavfile ./zh.wav
paddlespeech_client asr_online
--server_ip
127.0.0.1
--port
8290
--punc
.server_ip 127.0.0.1
--punc
.port 8190
--input
./zh.wav
paddlespeech_client asr_online
--server_ip
127.0.0.1
--port
8290
--punc
.server_ip 127.0.0.1
--punc
.port 8190
--input
./zh.wav
paddlespeech/server/conf/ws_ds2_application.yaml
浏览文件 @
d21e6d8a
...
@@ -45,7 +45,7 @@ asr_online-inference:
...
@@ -45,7 +45,7 @@ asr_online-inference:
sample_width
:
2
sample_width
:
2
window_n
:
7
# frame
window_n
:
7
# frame
shift_n
:
4
# frame
shift_n
:
4
# frame
window_ms
:
2
0
# ms
window_ms
:
2
5
# ms
shift_ms
:
10
# ms
shift_ms
:
10
# ms
...
@@ -80,5 +80,5 @@ asr_online-onnx:
...
@@ -80,5 +80,5 @@ asr_online-onnx:
sample_width
:
2
sample_width
:
2
window_n
:
7
# frame
window_n
:
7
# frame
shift_n
:
4
# frame
shift_n
:
4
# frame
window_ms
:
2
0
# ms
window_ms
:
2
5
# ms
shift_ms
:
10
# ms
shift_ms
:
10
# ms
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录