-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdecoder_phone_LM_ctm.sh
More file actions
26 lines (25 loc) · 1.11 KB
/
decoder_phone_LM_ctm.sh
File metadata and controls
26 lines (25 loc) · 1.11 KB
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
#==============================================================
# Time stamps for each phone with LM
#==============================================================
. cmd.sh
. run.sh
online2-wav-nnet3-latgen-faster \
--online=false \
--do-endpointing=false \
--frame-subsampling-factor=3 \
--config=exp/tdnn_7b_chain_online/conf/online.conf \
--max-active=7000 \
--beam=15.0 \
--lattice-beam=6.0 \
--feature-type=mfcc \
--acoustic-scale=1.0 \
--mfcc-config=conf/mfcc_hires.conf \
--word-symbol-table=exp/tdnn_7b_chain_online/graph_pp/words.txt \
exp/tdnn_7b_chain_online/final.mdl \
exp/tdnn_7b_chain_online/graph_pp/HCLG.fst \
'ark:echo utterance-id2 utterance-id2|' \
"scp:echo utterance-id2 sample.wav |" \
ark:| lattice-1best ark:- ark: | \
lattice-align-phones --replace-output-symbols=true exp/tdnn_7b_chain_online/final.mdl ark:- ark:- | \
nbest-to-ctm ark:- - | \
utils/int2sym.pl -f 5 exp/tdnn_7b_chain_online/graph_pp/phones.txt > sample1.txt