summaryrefslogtreecommitdiff
path: root/client/test.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-07-11 09:38:42 -0700
committerschneefux <schneefux+commit@schneefux.xyz>2014-07-11 09:38:42 -0700
commit43eebc44166da07388a2e932d1234090fda957ec (patch)
treed5cc1793a0b6269df71cce2b58ea099c60e4e455 /client/test.py
parentea082f844a6748141aa61143421e4e9d0cc19bda (diff)
parent8a5e5ed385a5c467260c2f1b20816a66cebfc1c6 (diff)
downloadjasper-client-43eebc44166da07388a2e932d1234090fda957ec.tar.gz
jasper-client-43eebc44166da07388a2e932d1234090fda957ec.zip
Merge pull request #100 from astahlman/master
Platform independent audio output. Stop hardcoding /home/jasper.
Diffstat (limited to 'client/test.py')
-rw-r--r--client/test.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/client/test.py b/client/test.py
index 80191ca..fb7d147 100644
--- a/client/test.py
+++ b/client/test.py
@@ -1,3 +1,8 @@
+import os
+
+if os.environ.get('JASPER_HOME') is None:
+ os.environ['JASPER_HOME'] = '/home/pi'
+
import unittest
import argparse
from mock import patch
@@ -6,6 +11,7 @@ import yaml
import test_mic
import g2p
import brain
+import speaker
def activeInternet():
@@ -23,7 +29,7 @@ class TestMic(unittest.TestCase):
self.time_clip = "../static/audio/time.wav"
from mic import Mic
- self.m = Mic("languagemodel.lm", "dictionary.dic",
+ self.m = Mic(speaker.newSpeaker(), "languagemodel.lm", "dictionary.dic",
"languagemodel_persona.lm", "dictionary_persona.dic")
def testTranscribeJasper(self):