diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-08-09 20:01:26 -0700 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-08-09 20:01:26 -0700 |
| commit | a510d85e6e594172e31c622312309e2c5cbd9f0b (patch) | |
| tree | 645f0328db5fe2a3f2edd21b73a80851021747d5 /client/test.py | |
| parent | 10a57e25f29bd4cdf8caf50d1ebeff20ac506b9d (diff) | |
| parent | 1eb5e58379f463f322e62a37ece2c2bd6d61c67d (diff) | |
| download | jasper-client-a510d85e6e594172e31c622312309e2c5cbd9f0b.tar.gz jasper-client-a510d85e6e594172e31c622312309e2c5cbd9f0b.zip | |
Merge pull request #118 from astahlman/master
LGTM! Thanks for the fine work and revisions.
Diffstat (limited to 'client/test.py')
| -rw-r--r-- | client/test.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/client/test.py b/client/test.py index fb7d147..6186642 100644 --- a/client/test.py +++ b/client/test.py @@ -28,18 +28,17 @@ class TestMic(unittest.TestCase): self.jasper_clip = "../static/audio/jasper.wav" self.time_clip = "../static/audio/time.wav" - from mic import Mic - self.m = Mic(speaker.newSpeaker(), "languagemodel.lm", "dictionary.dic", - "languagemodel_persona.lm", "dictionary_persona.dic") + from stt import PocketSphinxSTT + self.stt = PocketSphinxSTT() def testTranscribeJasper(self): """Does Jasper recognize his name (i.e., passive listen)?""" - transcription = self.m.transcribe(self.jasper_clip, PERSONA_ONLY=True) + transcription = self.stt.transcribe(self.jasper_clip, PERSONA_ONLY=True) self.assertTrue("JASPER" in transcription) def testTranscribe(self): """Does Jasper recognize 'time' (i.e., active listen)?""" - transcription = self.m.transcribe(self.time_clip) + transcription = self.stt.transcribe(self.time_clip) self.assertTrue("TIME" in transcription) |
