Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
8d19c056
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看板
“dbe4e6721044548268218ebfcd188ca87fb840c3”上不存在“python/examples/pipeline/PaddleClas/HRNet_W18_C/benchmark.py”
提交
8d19c056
编写于
5月 12, 2022
作者:
Y
Yang Zhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add custom_streaming_asr
上级
a11dc53c
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
55 addition
and
0 deletion
+55
-0
demos/custom_streaming_asr/README.md
demos/custom_streaming_asr/README.md
+1
-0
demos/custom_streaming_asr/README_cn.md
demos/custom_streaming_asr/README_cn.md
+0
-0
demos/custom_streaming_asr/path.sh
demos/custom_streaming_asr/path.sh
+2
-0
demos/custom_streaming_asr/setup_docker.sh
demos/custom_streaming_asr/setup_docker.sh
+1
-0
demos/custom_streaming_asr/websocket_client.sh
demos/custom_streaming_asr/websocket_client.sh
+18
-0
demos/custom_streaming_asr/websocket_server.sh
demos/custom_streaming_asr/websocket_server.sh
+33
-0
未找到文件。
demos/custom_streaming_asr/README.md
0 → 100644
浏览文件 @
8d19c056
run setup_docker.sh first and then run websocket_server.sh
demos/custom_streaming_asr/README_cn.md
0 → 100644
浏览文件 @
8d19c056
demos/custom_streaming_asr/path.sh
0 → 100644
浏览文件 @
8d19c056
export
LD_LIBRARY_PATH
=
$PWD
/resource/lib
export
PATH
=
$PATH
:
$PWD
/resource/bin
demos/custom_streaming_asr/setup_docker.sh
0 → 100644
浏览文件 @
8d19c056
sudo
nvidia-docker run
--privileged
--net
=
host
--ipc
=
host
-it
--rm
-v
$PWD
:/paddle
--name
=
paddle_demo_docker registry.baidubce.com/paddlepaddle/paddle:2.2.2 /bin/bash
demos/custom_streaming_asr/websocket_client.sh
0 → 100755
浏览文件 @
8d19c056
#!/bin/bash
set
+x
set
-e
.
path.sh
# input
data
=
$PWD
/data
# output
wav_scp
=
wav.scp
export
GLOG_logtostderr
=
1
# websocket client
websocket_client_main
\
--wav_rspecifier
=
scp:
$data
/
$wav_scp
\
--streaming_chunk
=
0.36
\
--port
=
8881
demos/custom_streaming_asr/websocket_server.sh
0 → 100755
浏览文件 @
8d19c056
#!/bin/bash
set
+x
set
-e
export
GLOG_logtostderr
=
1
.
path.sh
#test websocket server
model_dir
=
./resource/model
graph_dir
=
./resource/graph
cmvn
=
./data/cmvn.ark
#paddle_asr_online/resource.tar.gz
if
[
!
-f
$cmvn
]
;
then
wget
-c
https://paddlespeech.bj.bcebos.com/s2t/paddle_asr_online/resource.tar.gz
tar
xzfv resource.tar.gz
ln
-s
./resource/data
.
fi
websocket_server_main
\
--cmvn_file
=
$cmvn
\
--streaming_chunk
=
0.1
\
--use_fbank
=
true
\
--model_path
=
$model_dir
/avg_10.jit.pdmodel
\
--param_path
=
$model_dir
/avg_10.jit.pdiparams
\
--model_cache_shapes
=
"5-1-2048,5-1-2048"
\
--model_output_names
=
softmax_0.tmp_0,tmp_5,concat_0.tmp_0,concat_1.tmp_0
\
--word_symbol_table
=
$graph_dir
/words.txt
\
--graph_path
=
$graph_dir
/TLG.fst
--max_active
=
7500
\
--port
=
8881
\
--acoustic_scale
=
12
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录