From a06bf47ed2b6a77afaaa9bf2bc055d9332474169 Mon Sep 17 00:00:00 2001 From: namanbansal013 Date: Thu, 26 Mar 2026 11:42:24 -0300 Subject: [PATCH] Discard any pre-audio word timestamps from the interrupted turn. --- src/pipecat/services/tts_service.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pipecat/services/tts_service.py b/src/pipecat/services/tts_service.py index 1e34ab79a..a65a5e244 100644 --- a/src/pipecat/services/tts_service.py +++ b/src/pipecat/services/tts_service.py @@ -1120,6 +1120,9 @@ class TTSService(AIService): async def reset_word_timestamps(self): """Reset word timestamp tracking.""" self._initial_word_timestamp = -1 + # Discard any pre-audio word timestamps from the interrupted turn so they + # cannot be flushed into the next context after the audio baseline resets. + self._initial_word_times = [] async def add_word_timestamps( self, word_times: List[Tuple[str, float]], context_id: Optional[str] = None