diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-08-09 20:05:31 -0700 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-08-09 20:05:31 -0700 |
| commit | f34c8fd5dbe238ecaed8ecffb7ecd3ca0e3dcf2a (patch) | |
| tree | 4250d8f0210c9db714e9e446b0d9133a10ba4a07 /client/musicmode.py | |
| parent | 5c4d0d4fb0bcb85ebed61e822c83a9f753c3834e (diff) | |
| download | jasper-client-f34c8fd5dbe238ecaed8ecffb7ecd3ca0e3dcf2a.tar.gz jasper-client-f34c8fd5dbe238ecaed8ecffb7ecd3ca0e3dcf2a.zip | |
changed to modular STT mic for musicmode
Diffstat (limited to 'client/musicmode.py')
| -rwxr-xr-x | client/musicmode.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/client/musicmode.py b/client/musicmode.py index 79c4597..df3072c 100755 --- a/client/musicmode.py +++ b/client/musicmode.py @@ -6,6 +6,8 @@ import os from mic import Mic import g2p from music import * +import speaker +import stt class MusicMode: @@ -39,8 +41,10 @@ class MusicMode: # create a new mic with the new music models self.mic = Mic( - "languagemodel.lm", "dictionary.dic", "languagemodel_persona.lm", - "dictionary_persona.dic", "languagemodel_spotify.lm", "dictionary_spotify.dic") + speaker.newSpeaker(), + stt.PocketSphinxSTT(lmd_music="languagemodel_spotify.lm", dictd_music="dictionary_spotify.dic"), + stt.PocketSphinxSTT(lmd_music="languagemodel_spotify.lm", dictd_music="dictionary_spotify.dic") + ) def delegateInput(self, input): |
