Exemple #1
0
 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)
     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()
     HookManager.on_start()
     self.next_state()
Exemple #2
0
 def run(self):
     # run hook on_start
     HookManager.on_start()
     self.start_trigger()
Exemple #3
0
 def run(self):
     # run hook on_start
     HookManager.on_start()
     self.start_trigger()