Fix _on_end_of_utterance sets state to LISTENING even when no text.

This commit is contained in:
Xin Wang
2026-02-05 18:47:56 +08:00
parent 2de427b92c
commit da52a88006

View File

@@ -368,7 +368,8 @@ class DuplexPipeline:
# Reset for next utterance
self._audio_buffer = b""
self._last_sent_transcript = ""
await self.conversation.start_user_turn()
# Return to idle; don't force LISTENING which causes buffering on silence
await self.conversation.set_state(ConversationState.IDLE)
return
logger.info(f"EOU detected - user said: {user_text[:100]}...")