Kaldi-Running the example scripts

来源:互联网 发布:手机淘宝如何更改差评 编辑:程序博客网 时间:2024/06/05 09:44

(1) 特征:

提取:steps/make_mfcc.sh --nj 8 --cmd "run.pl" data/$x exp/make_mfcc/$x $featdir;

查看:copy-feats ark:$featdir/raw_mfcc_train.1.ark ark,t:- | head

(2) 模型:

   训练:steps/train_mono.sh --nj 4 --cmd "$train_cmd" data/train.1k data/lang exp/mono &

   查看GMM-HMM:

gmm-copy --binary=false exp/mono/0.mdl - | less

copy-int-vector "ark:gunzip -c exp/mono/ali.1.gz|" ark,t:- | head -n 2

show-transitions data/lang/phones.txt exp/mono/0.mdl

show-alignments data/lang/phones.txt exp/mono/0.mdl "ark:gunzip -c exp/mono/ali.1.gz |" | less

(3) 解码图:

utils/mkgraph.sh --mono data/lang exp/mono exp/mono/graph

steps/decode.sh --config conf/decode.config --nj 20 --cmd "$decode_cmd" \

exp/mono/graph data/test exp/mono/decode




0 0