diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-10-09 14:19:59 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-11-05 14:37:11 +0100 |
| commit | c89514f6cd11afa0ebbd20842ab881fe42a20dba (patch) | |
| tree | b415fd6e88038e1a3d518e83f5493d0c068d5e29 /client/modules | |
| parent | 533864c8814e9b02eceadd10e1bf20f46dbd1efe (diff) | |
| download | jasper-client-c89514f6cd11afa0ebbd20842ab881fe42a20dba.tar.gz jasper-client-c89514f6cd11afa0ebbd20842ab881fe42a20dba.zip | |
Remove TranscriptionMode and improve STT engine initialisation
Diffstat (limited to 'client/modules')
| -rw-r--r-- | client/modules/MPDControl.py | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/client/modules/MPDControl.py b/client/modules/MPDControl.py index f23fc7d..2548237 100644 --- a/client/modules/MPDControl.py +++ b/client/modules/MPDControl.py @@ -3,9 +3,6 @@ import re import logging import difflib import mpd -import stt -import vocabcompiler -import jasperpath from mic import Mic # Standard module stuff @@ -78,17 +75,11 @@ class MusicMode(object): "PLAYLIST"] phrases.extend(self.music.get_soup_playlist()) - vocabulary_music = vocabcompiler.PocketsphinxVocabulary( - name='music', path=jasperpath.config('vocabularies')) - vocabulary_music.compile(phrases) - - # create a new mic with the new music models - config = stt.PocketSphinxSTT.get_config() + music_stt_engine = mic.active_stt_engine.get_instance('music', phrases) self.mic = Mic(mic.speaker, mic.passive_stt_engine, - stt.PocketSphinxSTT(vocabulary_music=vocabulary_music, - **config)) + music_stt_engine) def delegateInput(self, input): |
