Blame view
egs/vystadial_cz/online_demo/path.sh
1.2 KB
8dcb6dfcb first commit |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
#!/bin/bash # data location PWD=`pwd` exp_dir=$PWD data_dir=$PWD/data/vystadial-sample-cs/test decode_dir=$exp_dir/decode # IO parameters wav_scp=$data_dir/input_best.scp # wav_scp=$data_dir/input.scp gmm_latgen_faster_tra=$decode_dir/gmm-latgen-faster.tra gmm_latgen_faster_tra_txt=${gmm_latgen_faster_tra}.txt pykaldi_latgen_tra=$decode_dir/pykaldi-latgen.tra pykaldi_latgen_tra_txt=${pykaldi_faster_tra}.txt lattice=$decode_dir/lat.gz # Czech language models LANG=cs HCLG=models/HCLG_tri2b_bmmi.fst AM=models/tri2b_bmmi.mdl MAT=models/tri2b_bmmi.mat # matrix trained in tri2b models WST=models/words.txt MFCC=models/mfcc.conf SILENCE=models/silence.csl kaldisrc=`pwd`/../../../src openfst=`pwd`/../../../tools/openfst/ export PATH=$kaldisrc/bin:$kaldisrc/fgmmbin:$kaldisrc/gmmbin:$kaldisrc/nnetbin:$kaldisrc/sgmm2bin:$kaldisrc/featbin:$kaldisrc/fstbin:$kaldisrc/latbin:$kaldisrc/onlinebin:$kaldisrc/onl-rec:$openfst/bin:"$PATH" export LD_LIBRARY_PATH=$kaldisrc/onl-rec:$kaldisrc/pykaldi/kaldi:$openfst/lib:$openfst/lib/fst:$LD_LIBRARY_PATH export PYTHONPATH=$kaldisrc/pykaldi:$kaldisrc/pykaldi/pyfst:$PYTHONPATH beam=16.0 latbeam=10.0 max_active=14000 # Size of chunks are queued in "online" interface batch_size=4560 |