Reset the retry counter when the user speaks
This commit is contained in:
@@ -141,6 +141,7 @@ class UserIdleProcessor(FrameProcessor):
|
|||||||
if self._conversation_started:
|
if self._conversation_started:
|
||||||
# We shouldn't call the idle callback if the user or the bot are speaking
|
# We shouldn't call the idle callback if the user or the bot are speaking
|
||||||
if isinstance(frame, UserStartedSpeakingFrame):
|
if isinstance(frame, UserStartedSpeakingFrame):
|
||||||
|
self._retry_count = 0
|
||||||
self._interrupted = True
|
self._interrupted = True
|
||||||
self._idle_event.set()
|
self._idle_event.set()
|
||||||
elif isinstance(frame, UserStoppedSpeakingFrame):
|
elif isinstance(frame, UserStoppedSpeakingFrame):
|
||||||
|
|||||||
Reference in New Issue
Block a user