From b8e2227a213df0ff270145582b1885e64a9e0169 Mon Sep 17 00:00:00 2001 From: Chad Bailey Date: Mon, 3 Feb 2025 22:41:04 +0000 Subject: [PATCH] remove extra LLMFullResponseEndFrame --- src/pipecat/services/cartesia.py | 4 +--- src/pipecat/services/elevenlabs.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pipecat/services/cartesia.py b/src/pipecat/services/cartesia.py index 75da116d5..5ada5665d 100644 --- a/src/pipecat/services/cartesia.py +++ b/src/pipecat/services/cartesia.py @@ -250,9 +250,7 @@ class CartesiaTTSService(WordTTSService, WebsocketService): # because we are likely still playing out audio and need the # timestamp to set send context frames. self._context_id = None - await self.add_word_timestamps( - [("TTSStoppedFrame", 0), ("LLMFullResponseEndFrame", 0), ("Reset", 0)] - ) + await self.add_word_timestamps([("TTSStoppedFrame", 0), ("Reset", 0)]) elif msg["type"] == "timestamps": await self.add_word_timestamps( list(zip(msg["word_timestamps"]["words"], msg["word_timestamps"]["start"])) diff --git a/src/pipecat/services/elevenlabs.py b/src/pipecat/services/elevenlabs.py index d37fb499b..2a4423dda 100644 --- a/src/pipecat/services/elevenlabs.py +++ b/src/pipecat/services/elevenlabs.py @@ -284,7 +284,7 @@ class ElevenLabsTTSService(WordTTSService, WebsocketService): if isinstance(frame, (TTSStoppedFrame, StartInterruptionFrame)): self._started = False if isinstance(frame, TTSStoppedFrame): - await self.add_word_timestamps([("LLMFullResponseEndFrame", 0), ("Reset", 0)]) + await self.add_word_timestamps([("Reset", 0)]) async def process_frame(self, frame: Frame, direction: FrameDirection): await super().process_frame(frame, direction)