Esempio n. 1
0
    def process(self, data):
        if "mycroft.stop" in data:
            self.client.emit(Message("mycroft.stop"))
            kill(['mimic'])  # TODO - Refactoring in favor of Mycroft Stop

        if "volume.up" in data:
            self.client.emit(Message("IncreaseVolumeIntent"))

        if "volume.down" in data:
            self.client.emit(Message("DecreaseVolumeIntent"))
Esempio n. 2
0
    def process(self, data):
        if "mycroft.stop" in data:
            self.client.emit(Message("mycroft.stop"))
            kill(['mimic'])  # TODO - Refactoring in favor of Mycroft Stop

        if "volume.up" in data:
            self.client.emit(Message("IncreaseVolumeIntent"))

        if "volume.down" in data:
            self.client.emit(Message("DecreaseVolumeIntent"))
Esempio n. 3
0
def handle_stop(event):
    kill([config.get('tts').get('module')])
Esempio n. 4
0
def handle_stop(event):
    kill([config.get('tts').get('module')])
    kill(["aplay"])
Esempio n. 5
0
 def process(self, data):
     if "mycroft.stop" in data:
         self.client.emit(Message("mycroft.stop"))
         kill(['mimic'])  # TODO - Refactoring in favor of Mycroft Stop
Esempio n. 6
0
 def process(self, data):
     if "mycroft.stop" in data:
         self.client.emit(Message("mycroft.stop"))
         kill(['mimic'])  # TODO - Refactoring in favor of Mycroft Stop
Esempio n. 7
0
def handle_stop(event):
    global _last_stop_signal
    _last_stop_signal = time.time()
    kill([config.get('tts').get('module')])
    kill(["aplay"])