1
0
mirror of https://github.com/aidygus/LinVAM.git synced 2024-11-27 02:58:06 +11:00

Update another Decoder config, remove whitespaces

This commit is contained in:
smirgol 2023-06-29 09:28:40 +02:00
parent 32d30656c4
commit 407b3e3d04

View File

@ -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")