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):