diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-10-13 11:30:26 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-10-13 11:30:26 +0200 |
| commit | 722ac02441b7e9978f908f6670e1fae731cbe6bb (patch) | |
| tree | 6c90ed884f7038aba574460054aebc5c2c4d6d94 /jasper.py | |
| parent | e0e2708dd240dbda6e6690b38a20ca418e5e77a8 (diff) | |
| parent | ac0a6d731ad179d62bf2be6be28ee862a020bdab (diff) | |
| download | jasper-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-x | jasper.py | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -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): |
