summaryrefslogtreecommitdiff
path: root/client/stt.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-10-04 13:05:09 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-10-04 13:05:09 +0200
commit3966d2f86a251f372a7a17f39108925ab9459974 (patch)
tree6b8c45a01ceb00f12faa21d02ad07977894813df /client/stt.py
parent4c22cd55978cd6d3b2abe51a12447f75992d9f1f (diff)
parent5ce3b07d0bc52c06dc1b184a144e87bab22c1d5d (diff)
downloadjasper-client-3966d2f86a251f372a7a17f39108925ab9459974.tar.gz
jasper-client-3966d2f86a251f372a7a17f39108925ab9459974.zip
Merge pull request #203 from Holzhaus/good-riddance-dear-writable-app-dir
Use config dir for non-temporary writable files
Diffstat (limited to 'client/stt.py')
-rw-r--r--client/stt.py5
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"):
"""