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