我已经开始使用Kaldi,并设法训练了迷你的librispeech文件,这在没有任何GPU的情况下花了很长时间。
现在我有了一个小的WAV文件,我需要弄清楚如何用Kaldi解码这个文件。我需要使用哪个解码文件?
如果能得到任何信息,那就太好了!
干杯,安迪
发布于 2019-04-14 05:19:05
要解码单个文件,您可以将其名称放入scp文件decode.scp中,如下所示:
decoder-test decoder-test.wav则解码脚本将如下所示:
online2-wav-nnet3-latgen-faster \
--word-symbol-table=exp/tdnn/graph/words.txt --frame-subsampling-factor=3 --frames-per-chunk=51 \
--acoustic-scale=1.0 --beam=12.0 --lattice-beam=6.0 --max-active=10000 \
--config=exp/tdnn/conf/online.conf \
exp/tdnn/final.mdl exp/tdnn/graph/HCLG.fst ark:decoder-test.utt2spk scp:decoder-test.scp ark:- |
lattice-lmrescore --lm-scale=-1.0 ark:- 'fstproject --project_output=true data/lang_test_rescore/G.fst |' ark:- |
lattice-lmrescore-const-arpa ark:- data/lang_test_rescore/G.carpa ark:- |
lattice-align-words data/lang_test_rescore/phones/word_boundary.int exp/tdnn/final.mdl ark:- ark:- |
lattice-to-ctm-conf --frame-shift=0.03 --acoustic-scale=0.08333 ark:- - |
local/int2sym.pl -f 5 data/lang_test_rescore/words.txt - -你也可以尝试kaldi-gstreamer或py-kaldi-asr来简化解码界面。
https://stackoverflow.com/questions/54985393
复制相似问题