def unpausing_trigger_process(self): """ If the trigger was in pause, this method will unpause it to listen again for the hotword """ logger.debug("Entering state: %s" % self.state) HookManager.on_waiting_for_trigger() self.trigger_instance.unpause() self.trigger_callback_called = False self.next_state()
def start_trigger_process(self): """ This function will start the trigger thread that listen for the hotword """ logger.debug("[Order] Entering state: %s" % self.state) HookManager.on_waiting_for_trigger() self.trigger_instance = TriggerLauncher.get_trigger(settings=self.settings, callback=self.trigger_callback) self.trigger_callback_called = False self.trigger_instance.daemon = True # Wait that the kalliope trigger is pronounced by the user self.trigger_instance.start() self.next_state()
def start_trigger_process(self): """ This function will start the trigger thread that listen for the hotword """ logger.debug("[Order] Entering state: %s" % self.state) HookManager.on_waiting_for_trigger() self.trigger_instance = TriggerLauncher.get_trigger(settings=self.settings, callback=self.trigger_callback) self.trigger_callback_called = False self.trigger_instance.daemon = True # Wait that the kalliope trigger is pronounced by the user self.trigger_instance.start() self.next_state()