Compare commits

...

4 Commits

Author SHA1 Message Date
Xin Wang
6a42c47700 Prettier EOU log 2026-02-09 19:56:47 +08:00
Xin Wang
3537a865f7 Merge branch 'master' of https://gitea.xiaowang.eu.org/wx44wx/AI-VideoAssistant 2026-02-09 19:18:24 +08:00
Xin Wang
b34d500479 Merge branch 'master' of https://gitea.xiaowang.eu.org/wx44wx/AI-VideoAssistant 2026-02-09 18:29:56 +08:00
Xin Wang
29d0b931eb better asr log 2026-02-09 18:22:00 +08:00

View File

@@ -466,7 +466,7 @@ class DuplexPipeline:
}, priority=30)
if not is_final:
logger.info(f"ASR interim: {text[:100]}")
logger.info(f"[ASR] ASR interim: {text[:100]}")
logger.debug(f"Sent transcript ({'final' if is_final else 'interim'}): {text[:50]}...")
async def _on_speech_start(self, current_chunk: bytes = b"") -> None:
@@ -521,7 +521,7 @@ class DuplexPipeline:
# Skip if no meaningful text
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
self._audio_buffer = b""
self._last_sent_transcript = ""
@@ -529,7 +529,7 @@ class DuplexPipeline:
await self.conversation.set_state(ConversationState.IDLE)
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,
# avoid duplicating transcript.final on EOU.