diff options
Diffstat (limited to 'client/stt.py')
| -rw-r--r-- | client/stt.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/stt.py b/client/stt.py index b4cc038..c5caf99 100644 --- a/client/stt.py +++ b/client/stt.py @@ -10,6 +10,7 @@ import logging from abc import ABCMeta, abstractmethod import requests import yaml +import jasperpath """ The default Speech-to-Text implementation which relies on PocketSphinx. @@ -42,8 +43,8 @@ class PocketSphinxSTT(AbstractSTTEngine): SLUG = 'sphinx' - def __init__(self, lmd="languagemodel.lm", dictd="dictionary.dic", - lmd_persona="languagemodel_persona.lm", dictd_persona="dictionary_persona.dic", + def __init__(self, lmd=jasperpath.config("languagemodel.lm"), dictd=jasperpath.config("dictionary.dic"), + lmd_persona=jasperpath.data("languagemodel_persona.lm"), dictd_persona=jasperpath.data("dictionary_persona.dic"), lmd_music=None, dictd_music=None, hmm_dir="/usr/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k"): """ |
