From ba87d1609cce06ba3b3ced10c16feebf76d2b241 Mon Sep 17 00:00:00 2001 From: filipi87 Date: Mon, 9 Mar 2026 11:24:36 -0300 Subject: [PATCH] Only marking self._is_yielding_frames_synchronously if receiving TTSAudioRawFrame --- src/pipecat/services/tts_service.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pipecat/services/tts_service.py b/src/pipecat/services/tts_service.py index 25a4c2735..6a04062e5 100644 --- a/src/pipecat/services/tts_service.py +++ b/src/pipecat/services/tts_service.py @@ -1038,7 +1038,9 @@ class TTSService(AIService): async for frame in generator: if frame: await self.append_to_audio_context(context_id, frame) - is_yielding_frames = True + if isinstance(frame, TTSAudioRawFrame): + is_yielding_frames = True + self._is_yielding_frames_synchronously = is_yielding_frames async def _stop_frame_handler(self):