diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-07-23 21:21:17 -0700 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-07-23 21:21:17 -0700 |
| commit | 2c55f4da462383ee6c7b89ea44e5c40cd5badf0c (patch) | |
| tree | 078672f2b221cfb7d0aa765f438002a277914c9f /client/main.py | |
| parent | 8a5e5ed385a5c467260c2f1b20816a66cebfc1c6 (diff) | |
| download | jasper-client-2c55f4da462383ee6c7b89ea44e5c40cd5badf0c.tar.gz jasper-client-2c55f4da462383ee6c7b89ea44e5c40cd5badf0c.zip | |
Google STT works on OS X
Diffstat (limited to 'client/main.py')
| -rw-r--r-- | client/main.py | 6 |
1 files changed, 4 insertions, 2 deletions
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?") |
