From 46cc612c3b98beda5144c9278cad76fea06fbce8 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 27 Sep 2014 15:59:32 +0200 Subject: Integrate new vocabcompiler into jasper.py, client/stt.py and client/musicmode.py --- jasper.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'jasper.py') 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): -- cgit v1.3.1