(self, PERSONA, mic, mpdwrapper)
| 64 | class MusicMode(object): |
| 65 | |
| 66 | def __init__(self, PERSONA, mic, mpdwrapper): |
| 67 | self._logger = logging.getLogger(__name__) |
| 68 | self.persona = PERSONA |
| 69 | # self.mic - we're actually going to ignore the mic they passed in |
| 70 | self.music = mpdwrapper |
| 71 | |
| 72 | # index spotify playlists into new dictionary and language models |
| 73 | phrases = ["STOP", "CLOSE", "PLAY", "PAUSE", "NEXT", "PREVIOUS", |
| 74 | "LOUDER", "SOFTER", "LOWER", "HIGHER", "VOLUME", |
| 75 | "PLAYLIST"] |
| 76 | phrases.extend(self.music.get_soup_playlist()) |
| 77 | |
| 78 | music_stt_engine = mic.active_stt_engine.get_instance('music', phrases) |
| 79 | |
| 80 | self.mic = Mic(mic.speaker, |
| 81 | mic.passive_stt_engine, |
| 82 | music_stt_engine) |
| 83 | |
| 84 | def delegateInput(self, input): |
| 85 |
nothing calls this directly
no test coverage detected