From 6f2126aa28d7715a8b65b4c7e427c72e32a6c28b Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 28 Sep 2014 20:51:50 +0200 Subject: Use config dir for non-temporary writable files This is also a (partial) fix for issue jasperproject/jasper-client#119 --- client/stt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/stt.py') 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"): """ -- cgit v1.3.1