Beispiel #1
0
 def set_mute_status(mute=False):
     """
     Define is the mute status
     :param mute: Boolean. If false, Kalliope is voice is stopped
     """
     logger.debug("[SettingEditor] mute. Switch trigger process to mute : %s" % mute)
     settings = SettingLoader().settings
     if mute:
         Utils.print_info("Kalliope now muted, voice has been stopped.")
         HookManager.on_mute()
     else:
         Utils.print_info("Kalliope now speaking.")
         HookManager.on_unmute()
     settings.options.mute = mute
 def set_mute_status(mute=False):
     """
     Define is the mute status
     :param mute: Boolean. If false, Kalliope is voice is stopped
     """
     logger.debug(
         "[SettingEditor] mute. Switch trigger process to mute : %s" % mute)
     settings = SettingLoader().settings
     if mute:
         Utils.print_info("Kalliope now muted, voice has been stopped.")
         HookManager.on_mute()
     else:
         Utils.print_info("Kalliope now speaking.")
         HookManager.on_unmute()
     settings.options.mute = mute
Beispiel #3
0
 def set_mute_status(self, muted=False):
     """
     Define is the trigger is listening or not
     :param muted: Boolean. If true, kalliope is muted
     """
     logger.debug(
         "[MainController] Mute button pressed. Switch trigger process to muted: %s"
         % muted)
     if muted:
         self.trigger_instance.pause()
         self.is_trigger_muted = True
         Utils.print_info("Kalliope now muted")
         HookManager.on_mute()
     else:
         self.trigger_instance.unpause()
         self.is_trigger_muted = False
         Utils.print_info("Kalliope now listening for trigger detection")
         HookManager.on_unmute()