summaryrefslogtreecommitdiff
path: root/client/main.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-06-08 20:39:35 -0700
committerschneefux <schneefux+commit@schneefux.xyz>2014-06-21 12:39:11 -0700
commit84a92e5327997815488276021e5498f7681ab2d7 (patch)
tree972b154650d9a4ae3bd0a77b1ace36d403457053 /client/main.py
parent1744368ac1889fe0767f04d55e8f928553c8db1c (diff)
downloadjasper-client-84a92e5327997815488276021e5498f7681ab2d7.tar.gz
jasper-client-84a92e5327997815488276021e5498f7681ab2d7.zip
Stop hardcoding /home/jasper and abstract out mic.say for multiplatform support
Diffstat (limited to 'client/main.py')
-rw-r--r--client/main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/main.py b/client/main.py
index c5805c4..35ef715 100644
--- a/client/main.py
+++ b/client/main.py
@@ -1,5 +1,6 @@
import yaml
import sys
+import speaker
from conversation import Conversation
@@ -20,7 +21,7 @@ if __name__ == "__main__":
profile = yaml.safe_load(open("profile.yml", "r"))
- mic = Mic("languagemodel.lm", "dictionary.dic",
+ mic = Mic(speaker.newSpeaker(), "languagemodel.lm", "dictionary.dic",
"languagemodel_persona.lm", "dictionary_persona.dic")
mic.say("How can I be of service?")