コード例 #1
0
ファイル: enclosure.py プロジェクト: khellan/mycroft-core
    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"))
コード例 #2
0
ファイル: enclosure.py プロジェクト: s-cotton/mycroft-core
    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"))
コード例 #3
0
ファイル: main.py プロジェクト: bisaysavath/mycroft-core
def handle_stop(event):
    kill([config.get('tts').get('module')])
コード例 #4
0
ファイル: main.py プロジェクト: trinoid/mycroft-core
def handle_stop(event):
    kill([config.get('tts').get('module')])
    kill(["aplay"])
コード例 #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
コード例 #6
0
ファイル: enclosure.py プロジェクト: Cliabhach/mycroft-core
 def process(self, data):
     if "mycroft.stop" in data:
         self.client.emit(Message("mycroft.stop"))
         kill(['mimic'])  # TODO - Refactoring in favor of Mycroft Stop
コード例 #7
0
ファイル: main.py プロジェクト: sreyaschaithanya/mycroft-core
def handle_stop(event):
    global _last_stop_signal
    _last_stop_signal = time.time()
    kill([config.get('tts').get('module')])
    kill(["aplay"])