forked from alumae/kaldi-gstreamer-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample_chinese_nnet3.yaml
50 lines (45 loc) · 1.89 KB
/
sample_chinese_nnet3.yaml
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
42
43
44
45
46
47
48
49
50
# You have to download multi_cn "online nnet3" chain model in order to use this sample
# Run download-multi_cn-nnet3.sh in 'test/models' to download them.
use-nnet2: True
decoder:
# All the properties nested here correspond to the kaldinnet2onlinedecoder GStreamer plugin properties.
# Use gst-inspect-1.0 ./libgstkaldionline2.so kaldinnet2onlinedecoder to discover the available properties
nnet-mode : 3
use-threaded-decoder: true
model : test/models/chinese/multi_cn_chain_sp_online/final.mdl
word-syms : test/models/chinese/multi_cn_chain_sp_online/words.txt
fst : test/models/chinese/multi_cn_chain_sp_online/HCLG.fst
mfcc-config : test/models/chinese/multi_cn_chain_sp_online/conf/mfcc.conf
ivector-extraction-config : test/models/chinese/multi_cn_chain_sp_online/conf/ivector_extractor.conf
max-active: 7000
beam: 15.0
lattice-beam: 6.0
acoustic-scale: 1.0
do-endpointing : true
endpoint-silence-phones : "1:2:3:4:5:6:7:8:9:10:11:12:13:14:15"
traceback-period-in-secs: 0.25
chunk-length-in-secs: 0.25
num-nbest: 1
out-dir: tmp
use-vad: False
silence-timeout: 10
# Just a sample post-processor that appends "." to the hypothesis
post-processor: perl -npe 'BEGIN {use IO::Handle; STDOUT->autoflush(1);} sleep(1); s/(.*)/\1./;'
#post-processor: (while read LINE; do echo $LINE; done)
# A sample full post processor that add a confidence score to 1-best hyp and deletes other n-best hyps
#full-post-processor: ./sample_full_post_processor.py
logging:
version : 1
disable_existing_loggers: False
formatters:
simpleFormater:
format: '%(asctime)s - %(levelname)7s: %(name)10s: %(message)s'
datefmt: '%Y-%m-%d %H:%M:%S'
handlers:
console:
class: logging.StreamHandler
formatter: simpleFormater
level: DEBUG
root:
level: DEBUG
handlers: [console]