Fix No cancellation of existing turn on new EOU.

This commit is contained in:
Xin Wang
2026-02-06 07:59:31 +08:00
parent 6831f5316c
commit 7846e4cebc

View File

@@ -388,6 +388,8 @@ class DuplexPipeline:
self._last_sent_transcript = "" self._last_sent_transcript = ""
# Process the turn - trigger LLM response # Process the turn - trigger LLM response
# Cancel any existing turn to avoid overlapping assistant responses
await self._stop_current_speech()
await self.conversation.end_user_turn(user_text) await self.conversation.end_user_turn(user_text)
self._current_turn_task = asyncio.create_task(self._handle_turn(user_text)) self._current_turn_task = asyncio.create_task(self._handle_turn(user_text))