diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-27 15:59:32 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-10-08 20:53:08 +0200 |
| commit | 46cc612c3b98beda5144c9278cad76fea06fbce8 (patch) | |
| tree | 452835a5fd554467f902b9feb0f0526613491d01 /jasper.py | |
| parent | 0aacc7df0f106cbca991c2d7d0d86d5ec3abafad (diff) | |
| download | jasper-client-46cc612c3b98beda5144c9278cad76fea06fbce8.tar.gz jasper-client-46cc612c3b98beda5144c9278cad76fea06fbce8.zip | |
Integrate new vocabcompiler into jasper.py, client/stt.py and client/musicmode.py
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): |
