From d43bc515315c8e267a21628263acc2203ccd6362 Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Fri, 17 Jan 2025 10:36:02 -0500 Subject: [PATCH] Reset the retry counter when the user speaks --- src/pipecat/processors/user_idle_processor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pipecat/processors/user_idle_processor.py b/src/pipecat/processors/user_idle_processor.py index 35f945e27..c32515897 100644 --- a/src/pipecat/processors/user_idle_processor.py +++ b/src/pipecat/processors/user_idle_processor.py @@ -141,6 +141,7 @@ class UserIdleProcessor(FrameProcessor): if self._conversation_started: # We shouldn't call the idle callback if the user or the bot are speaking if isinstance(frame, UserStartedSpeakingFrame): + self._retry_count = 0 self._interrupted = True self._idle_event.set() elif isinstance(frame, UserStoppedSpeakingFrame):