From c5ce667387b110f02bb856d9e5e492ef3e66bb53 Mon Sep 17 00:00:00 2001 From: filipi87 Date: Mon, 9 Mar 2026 11:10:42 -0300 Subject: [PATCH] Retrieving the context_id from the TTSStartedFrame --- src/pipecat/services/tts_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipecat/services/tts_service.py b/src/pipecat/services/tts_service.py index 731b71581..25a4c2735 100644 --- a/src/pipecat/services/tts_service.py +++ b/src/pipecat/services/tts_service.py @@ -1049,8 +1049,8 @@ class TTSService(AIService): frame = await asyncio.wait_for( self._stop_frame_queue.get(), timeout=self._stop_frame_timeout_s ) - context_id = frame.context_id if isinstance(frame, TTSStartedFrame): + context_id = frame.context_id has_started = True elif isinstance(frame, (TTSStoppedFrame, InterruptionFrame)): has_started = False