MCPcopy Create free account
hub / github.com/jasperproject/jasper-client / __init__

Method __init__

client/modules/MPDControl.py:66–82  ·  view source on GitHub ↗
(self, PERSONA, mic, mpdwrapper)

Source from the content-addressed store, hash-verified

64class 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

Callers

nothing calls this directly

Calls 3

MicClass · 0.90
get_soup_playlistMethod · 0.80
get_instanceMethod · 0.45

Tested by

no test coverage detected