mirror of
https://github.com/aidygus/LinVAM.git
synced 2024-11-23 09:18:04 +11:00
Update another Decoder config, remove whitespaces
This commit is contained in:
parent
32d30656c4
commit
407b3e3d04
@ -224,14 +224,14 @@ def kws_analysis(dic, kwlist):
|
||||
modeldir = "/usr/local/share/pocketsphinx/model/"
|
||||
|
||||
# Create a decoder with certain model
|
||||
config = Decoder.default_config()
|
||||
config.set_string('-hmm', os.path.join(modeldir, 'en-us/en-us'))
|
||||
config.set_string('-dict', dic)
|
||||
config.set_string('-kws', kwlist)
|
||||
config.set_string('-dither', "no")
|
||||
config.set_string('-logfn', '/dev/null')
|
||||
config.set_string('-featparams', os.path.join(os.path.join(modeldir,
|
||||
'en-us/en-us'), "feat.params"))
|
||||
config = Config(
|
||||
hmm=os.path.join(modeldir, 'en-us/en-us'),
|
||||
dict=dic,
|
||||
kws=kwlist,
|
||||
dither="no",
|
||||
featparams=os.path.join(os.path.join(modeldir, 'en-us/en-us'), "feat.params"),
|
||||
logfn='/dev/null'
|
||||
)
|
||||
|
||||
stream = open(OUTPUT_FILENAME, "rb")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user