Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
917578fe
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看板
未验证
提交
917578fe
编写于
4月 21, 2022
作者:
H
Hui Zhang
提交者:
GitHub
4月 21, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1743 from SmileGoat/add_websocketlib
[speechx] Add recognizer_test_main script
上级
1d862487
1867c7bc
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
40 addition
and
1 deletion
+40
-1
speechx/examples/ds2_ol/aishell/run.sh
speechx/examples/ds2_ol/aishell/run.sh
+40
-1
未找到文件。
speechx/examples/ds2_ol/aishell/run.sh
浏览文件 @
917578fe
...
@@ -29,8 +29,8 @@ vocb_dir=$ckpt_dir/data/lang_char/
...
@@ -29,8 +29,8 @@ vocb_dir=$ckpt_dir/data/lang_char/
mkdir
-p
exp
mkdir
-p
exp
exp
=
$PWD
/exp
exp
=
$PWD
/exp
aishell_wav_scp
=
aishell_test.scp
if
[
${
stage
}
-le
0
]
&&
[
${
stop_stage
}
-ge
0
]
;
then
if
[
${
stage
}
-le
0
]
&&
[
${
stop_stage
}
-ge
0
]
;
then
aishell_wav_scp
=
aishell_test.scp
if
[
!
-d
$data
/test
]
;
then
if
[
!
-d
$data
/test
]
;
then
pushd
$data
pushd
$data
wget
-c
https://paddlespeech.bj.bcebos.com/s2t/paddle_asr_online/aishell_test.zip
wget
-c
https://paddlespeech.bj.bcebos.com/s2t/paddle_asr_online/aishell_test.zip
...
@@ -140,3 +140,42 @@ if [ ${stage} -le 4 ] && [ ${stop_stage} -ge 4 ]; then
...
@@ -140,3 +140,42 @@ if [ ${stage} -le 4 ] && [ ${stop_stage} -ge 4 ]; then
cat
$data
/split
${
nj
}
/
*
/result_tlg
>
$exp
/
${
label_file
}
_tlg
cat
$data
/split
${
nj
}
/
*
/result_tlg
>
$exp
/
${
label_file
}
_tlg
utils/compute-wer.py
--char
=
1
--v
=
1
$text
$exp
/
${
label_file
}
_tlg
>
$exp
/
${
wer
}
.tlg
utils/compute-wer.py
--char
=
1
--v
=
1
$text
$exp
/
${
label_file
}
_tlg
>
$exp
/
${
wer
}
.tlg
fi
fi
if
[
${
stage
}
-le
5
]
&&
[
${
stop_stage
}
-ge
5
]
;
then
cmvn
=
$data
/cmvn.ark
if
[
!
-f
$data
/split
${
nj
}
/1/
${
aishell_wav_scp
}
]
;
then
cmvn-json2kaldi
--json_file
=
$ckpt_dir
/data/mean_std.json
--cmvn_write_path
=
$cmvn
./local/split_data.sh
$data
${
data
}
/
${
aishell_wav_scp
}
$aishell_wav_scp
$nj
fi
wfst
=
$data
/wfst/
mkdir
-p
$wfst
if
[
!
-f
$wfst
/aishell_graph.zip
]
;
then
pushd
$wfst
wget
-c
https://paddlespeech.bj.bcebos.com/s2t/paddle_asr_online/aishell_graph.zip
unzip aishell_graph.zip
popd
fi
graph_dir
=
$wfst
/aishell_graph
# TLG decoder
utils/run.pl
JOB
=
1:
$nj
$data
/split
${
nj
}
/JOB/recognizer.log
\
recognizer_test_main
\
--wav_rspecifier
=
scp:
$data
/split
${
nj
}
/JOB/
${
aishell_wav_scp
}
\
--cmvn_file
=
$cmvn
\
--model_path
=
$model_dir
/avg_1.jit.pdmodel
\
--convert2PCM32
=
true
\
--streaming_chunk
=
30
\
--params_path
=
$model_dir
/avg_1.jit.pdiparams
\
--word_symbol_table
=
$graph_dir
/words.txt
\
--model_output_names
=
softmax_0.tmp_0,tmp_5,concat_0.tmp_0,concat_1.tmp_0
\
--graph_path
=
$graph_dir
/TLG.fst
--max_active
=
7500
\
--acoustic_scale
=
1.2
\
--result_wspecifier
=
ark,t:
$data
/split
${
nj
}
/JOB/result_recognizer
cat
$data
/split
${
nj
}
/
*
/result_recognizer
>
$exp
/
${
label_file
}
_recognizer
utils/compute-wer.py
--char
=
1
--v
=
1
$text
$exp
/
${
label_file
}
_recognizer
>
$exp
/
${
wer
}
.recognizer
fi
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录