Compare commits

...

2 Commits

Author SHA1 Message Date
Xin Wang
31d24a7428 Merge branch 'master' of https://gitea.xiaowang.eu.org/wx44wx/py-active-call 2026-02-06 08:00:39 +08:00
Xin Wang
7846e4cebc Fix No cancellation of existing turn on new EOU. 2026-02-06 07:59:31 +08:00

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