summaryrefslogtreecommitdiff
path: root/client/stt.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-09-28 20:51:50 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-10-03 14:12:09 +0200
commit6f2126aa28d7715a8b65b4c7e427c72e32a6c28b (patch)
tree7ad61de81d2702ef57c28ade3ffaa3c098979f1c /client/stt.py
parentc263709078c096faef891502e06cc9e9ade65777 (diff)
downloadjasper-client-6f2126aa28d7715a8b65b4c7e427c72e32a6c28b.tar.gz
jasper-client-6f2126aa28d7715a8b65b4c7e427c72e32a6c28b.zip
Use config dir for non-temporary writable files
This is also a (partial) fix for issue jasperproject/jasper-client#119
Diffstat (limited to 'client/stt.py')
-rw-r--r--client/stt.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/stt.py b/client/stt.py
index b4cc038..344696c 100644
--- a/client/stt.py
+++ b/client/stt.py
@@ -42,8 +42,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"):
"""