From 64ae8d239491af4bb38fcf31250287a75f78aa40 Mon Sep 17 00:00:00 2001 From: vipyne Date: Wed, 6 Aug 2025 22:40:47 -0500 Subject: [PATCH] log: warning -> trace for elevenlabs tts unavailable context --- src/pipecat/services/elevenlabs/tts.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pipecat/services/elevenlabs/tts.py b/src/pipecat/services/elevenlabs/tts.py index 1dcc4fa77..57caa4289 100644 --- a/src/pipecat/services/elevenlabs/tts.py +++ b/src/pipecat/services/elevenlabs/tts.py @@ -546,7 +546,6 @@ class ElevenLabsTTSService(AudioContextWordTTSService): continue # Check if this message belongs to the current context. - # This should never happen, so warn about it. if not self.audio_context_available(received_ctx_id): if self._context_id == received_ctx_id: logger.debug( @@ -554,7 +553,10 @@ class ElevenLabsTTSService(AudioContextWordTTSService): ) await self.create_audio_context(self._context_id) else: - logger.warning(f"Ignoring message from unavailable context: {received_ctx_id}") + # This can happen if a message is received _after_ we have closed a context + # due to user interruption but _before_ the `isFinal` message for the context + # is received. + logger.trace(f"Ignoring message from unavailable context: {received_ctx_id}") continue if msg.get("audio"):