diff --git a/client/conversation.py b/client/conversation.py index 064b2b3..f0ad3f6 100644 --- a/client/conversation.py +++ b/client/conversation.py @@ -70,7 +70,8 @@ def handleForever(self): continue self._logger.info("Keyword '%s' has been said!", self.persona) else: - self.mic.skip_passive = False + if not self.mic.chatting_mode: + self.mic.skip_passive = False self._logger.debug("Started to listen actively with threshold: %r", threshold) diff --git a/client/mic.py b/client/mic.py index 5450b93..207c622 100644 --- a/client/mic.py +++ b/client/mic.py @@ -52,6 +52,7 @@ def __init__(self, profile, speaker, passive_stt_engine, self._logger.info("Initialization of PyAudio completed.") self.stop_passive = False self.skip_passive = False + self.chatting_mode = False def __del__(self): self._audio.terminate()