summaryrefslogtreecommitdiff
path: root/jasper.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-10-13 11:30:26 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-10-13 11:30:26 +0200
commit722ac02441b7e9978f908f6670e1fae731cbe6bb (patch)
tree6c90ed884f7038aba574460054aebc5c2c4d6d94 /jasper.py
parente0e2708dd240dbda6e6690b38a20ca418e5e77a8 (diff)
parentac0a6d731ad179d62bf2be6be28ee862a020bdab (diff)
downloadjasper-client-722ac02441b7e9978f908f6670e1fae731cbe6bb.tar.gz
jasper-client-722ac02441b7e9978f908f6670e1fae731cbe6bb.zip
Merge pull request #181 from Holzhaus/vocabcompiler-abstraction
Rewrite of vocabcompiler
Diffstat (limited to 'jasper.py')
-rwxr-xr-xjasper.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/jasper.py b/jasper.py
index d116ce9..24396cf 100755
--- a/jasper.py
+++ b/jasper.py
@@ -8,7 +8,7 @@ import logging
import yaml
import argparse
-from client import vocabcompiler, tts, stt, jasperpath, diagnose
+from client import tts, stt, jasperpath, diagnose
# Add jasperpath.LIB_PATH to sys.path
sys.path.append(jasperpath.LIB_PATH)
@@ -99,14 +99,9 @@ class Jasper(object):
"to '%s'", tts_engine_slug)
tts_engine_class = tts.get_engine_by_slug(tts_engine_slug)
- # Compile dictionary
- sentences = jasperpath.config("sentences.txt")
- dictionary = jasperpath.config("dictionary.dic")
- languagemodel = jasperpath.config("languagemodel.lm")
- vocabcompiler.compile(sentences, dictionary, languagemodel)
-
# Initialize Mic
- self.mic = Mic(tts_engine_class(), stt.PocketSphinxSTT(),
+ self.mic = Mic(tts_engine_class(),
+ stt.PocketSphinxSTT(**stt.PocketSphinxSTT.get_config()),
stt.newSTTEngine(stt_engine_type, api_key=api_key))
def run(self):