def handle_stop(event): """ handle stop message """ global _last_stop_signal _last_stop_signal = time.time() tts.playback.clear_queue() stop_speaking()
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!")
def handle_stop(event): global _last_stop_signal _last_stop_signal = time.time() tts.playback.clear_queue() stop_speaking()
def handle_stop(event): global _last_stop_signal _last_stop_signal = time.time() stop_speaking()