Prettier EOU log

This commit is contained in:
Xin Wang
2026-02-09 19:56:47 +08:00
parent 3537a865f7
commit 6a42c47700

View File

@@ -521,7 +521,7 @@ class DuplexPipeline:
# Skip if no meaningful text # Skip if no meaningful text
if not user_text or not user_text.strip(): if not user_text or not user_text.strip():
logger.debug("EOU detected but no transcription - skipping") logger.debug("[EOU] Detected but no transcription - skipping")
# Reset for next utterance # Reset for next utterance
self._audio_buffer = b"" self._audio_buffer = b""
self._last_sent_transcript = "" self._last_sent_transcript = ""
@@ -529,7 +529,7 @@ class DuplexPipeline:
await self.conversation.set_state(ConversationState.IDLE) await self.conversation.set_state(ConversationState.IDLE)
return return
logger.info(f"EOU detected - user said: {user_text[:100]}...") logger.info(f"[EOU] Detected - user said: {user_text[:100]}...")
# For ASR backends that already emitted final via callback, # For ASR backends that already emitted final via callback,
# avoid duplicating transcript.final on EOU. # avoid duplicating transcript.final on EOU.