From fe8cb2f4e0cf787f43dfad02bf67ed6e5d42161a Mon Sep 17 00:00:00 2001 From: filipi87 Date: Thu, 19 Mar 2026 10:12:01 -0300 Subject: [PATCH] Always appending TTSTextFrame to the audio context. --- src/pipecat/services/tts_service.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/pipecat/services/tts_service.py b/src/pipecat/services/tts_service.py index dd27314f5..f16c66191 100644 --- a/src/pipecat/services/tts_service.py +++ b/src/pipecat/services/tts_service.py @@ -1060,11 +1060,8 @@ class TTSService(AIService): # Only override append_to_context if explicitly set if append_tts_text_to_context is not None: frame.append_to_context = append_tts_text_to_context - # For services using the audio context we are appending to the context, so it preserves the ordering. - if self.audio_context_available(context_id): - await self.append_to_audio_context(context_id, frame) - else: - await self.push_frame(frame) + # Appending to the context, so it preserves the ordering. + await self.append_to_audio_context(context_id, frame) async def tts_process_generator( self, context_id: str, generator: AsyncGenerator[Frame | None, None]