Reset the retry counter when the user speaks

This commit is contained in:
Mark Backman
2025-01-17 10:36:02 -05:00
parent a4ddf0645f
commit d43bc51531

View File

@@ -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):