online2-wav-nnet3-latgen-faster 在线解码,文件输入输出
decode.sh运行程序
./online2-wav-nnet3-latgen-faster
--do-endpointing=false
--frames-per-chunk=20
--extra-left-context-initial=0
--online=true
--config=exp/chain/tdnn7q_sp_online/conf/online.conf
--min-active=200
--max-active=7000
--beam=15.0
--lattice-beam=6.0
--acoustic-scale=1.0
--word-symbol-table=exp/chain/tdnn7q_sp/graph/words.txt
exp/chain/tdnn7q_sp_online/final.mdl
exp/chain/tdnn7q_sp/graph/HCLG.fst
ark:data/call_center_26s_hires/split1/1/spk2utt
'ark,s,cs:wav-copy scp,p:data/call_center_26s_hires/split1/1/wav.scp ark:- |'
'ark:|lattice-scale --acoustic-scale=10.0 ark:- ark:- | gzip -c >exp/chain/tdnn7q_sp_online/decode_call_center_26s/lat.1.gz'
.ark是数据(二进制文件),.scp是记录对应ark的路径;.ark文件一般都是很大的(因为他们里面是真正的数据),可以通过下面的命令查看:copy-feats ark:mfcc/raw_mfcc_train.1.ark ark,

这篇博客介绍了Kaldi的在线解码过程,特别是使用online2-wav-nnet3-latgen-faster进行文件输入输出。文章详细讨论了.Kaldi的数据格式,包括.Ark和.Scp文件的作用,以及如何通过copy-feats命令查看Ark文件内容。同时,解释了Kaldi中Table的两种形式——archive和script,并阐述了如何通过rspecifiers和wspecifiers来读写数据。最后,提到了解码脚本decode.sh的参数解析,强调了有序访问和错误处理的重要性。
最低0.47元/天 解锁文章
1068

被折叠的 条评论
为什么被折叠?



