示例#1
0
def handle_stop(event):
    """
        handle stop message
    """
    global _last_stop_signal
    _last_stop_signal = time.time()
    tts.playback.clear_queue()
    stop_speaking()
示例#2
0
 def stop(self, event=None):
     LOG.info("Stopping access point...")
     if is_speaking():
         stop_speaking()  # stop any assistance being spoken
     self._stop_connection_monitor()
     self.ap.down()
     self.enclosure.mouth_reset()  # remove "start.mycroft.ai"
     self.starting = False
     if self.server:
         self.server.server.shutdown()
         self.server.server.server_close()
         self.server.join()
         self.server = None
     LOG.info("Access point stopped!")
示例#3
0
def handle_stop(event):
    global _last_stop_signal
    _last_stop_signal = time.time()
    tts.playback.clear_queue()
    stop_speaking()
示例#4
0
def handle_stop(event):
    global _last_stop_signal
    _last_stop_signal = time.time()
    stop_speaking()