From 1d9696e6149f0111719271c7ee8541996fca089c Mon Sep 17 00:00:00 2001 From: Gokul Js Date: Wed, 19 Nov 2025 22:19:00 +0530 Subject: [PATCH] Add audio flushing after sending text in RimeNonJsonTTSService This update ensures that audio is flushed immediately after sending bare text to the WebSocket, improving the responsiveness of the Text-to-Speech service. --- src/pipecat/services/rime/tts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pipecat/services/rime/tts.py b/src/pipecat/services/rime/tts.py index a11329309..075627d17 100644 --- a/src/pipecat/services/rime/tts.py +++ b/src/pipecat/services/rime/tts.py @@ -833,6 +833,7 @@ class RimeNonJsonTTSService(InterruptibleTTSService): # Send bare text (not JSON) await self._get_websocket().send(text) await self.start_tts_usage_metrics(text) + await self.flush_audio() except Exception as e: logger.error(f"{self} exception: {e}")