diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-11-05 14:40:53 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-11-05 14:40:53 +0100 |
| commit | bc14ded285e2291600457bd9f4ac559270ba53a7 (patch) | |
| tree | b415fd6e88038e1a3d518e83f5493d0c068d5e29 /client/modules/MPDControl.py | |
| parent | 533864c8814e9b02eceadd10e1bf20f46dbd1efe (diff) | |
| parent | c89514f6cd11afa0ebbd20842ab881fe42a20dba (diff) | |
| download | jasper-client-bc14ded285e2291600457bd9f4ac559270ba53a7.tar.gz jasper-client-bc14ded285e2291600457bd9f4ac559270ba53a7.zip | |
Merge pull request #219 from Holzhaus/remove-transcription-mode
Remove transcription mode
Diffstat (limited to 'client/modules/MPDControl.py')
| -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): |
