From 2c55f4da462383ee6c7b89ea44e5c40cd5badf0c Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 23 Jul 2014 21:21:17 -0700 Subject: Google STT works on OS X --- client/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client/main.py') diff --git a/client/main.py b/client/main.py index 35ef715..4a54f3f 100644 --- a/client/main.py +++ b/client/main.py @@ -1,6 +1,8 @@ import yaml import sys import speaker +import stt +from stt import PocketSphinxSTT from conversation import Conversation @@ -21,8 +23,8 @@ if __name__ == "__main__": profile = yaml.safe_load(open("profile.yml", "r")) - mic = Mic(speaker.newSpeaker(), "languagemodel.lm", "dictionary.dic", - "languagemodel_persona.lm", "dictionary_persona.dic") + # TODO: rename 'api_key' to 'google_stt_api_key' + mic = Mic(speaker.newSpeaker(), PocketSphinxSTT(), stt.newSTTEngine(profile['api_key'])) mic.say("How can I be of service?") -- cgit v1.3.1