From 2aca8619e1fa2197ebe5cb83dee03518887f38f7 Mon Sep 17 00:00:00 2001 From: Harshita Jain Date: Fri, 27 Feb 2026 14:27:39 -0800 Subject: [PATCH] fix missing SMALLEST_TTFS_P99 constant --- src/pipecat/services/smallest/tts.py | 10 ++-------- src/pipecat/services/stt_latency.py | 1 + 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/pipecat/services/smallest/tts.py b/src/pipecat/services/smallest/tts.py index d21e472e2..765847c9d 100644 --- a/src/pipecat/services/smallest/tts.py +++ b/src/pipecat/services/smallest/tts.py @@ -330,11 +330,7 @@ class SmallestTTSService(InterruptibleTTSService): if status == "complete": msg_request_id = msg.get("request_id") - if ( - self._context_id - and msg_request_id - and msg_request_id == self._context_id - ): + if self._context_id and msg_request_id and msg_request_id == self._context_id: await self.stop_all_metrics() await self.push_frame(TTSStoppedFrame(context_id=self._context_id)) self._context_id = None @@ -496,9 +492,7 @@ class SmallestHttpTTSService(TTSService): self._session = aiohttp.ClientSession() except ModuleNotFoundError as e: logger.error(f"Exception: {e}") - logger.error( - "In order to use Smallest HTTP TTS, you need to `pip install aiohttp`." - ) + logger.error("In order to use Smallest HTTP TTS, you need to `pip install aiohttp`.") raise Exception(f"Missing module: {e}") async def stop(self, frame: EndFrame): diff --git a/src/pipecat/services/stt_latency.py b/src/pipecat/services/stt_latency.py index 351e041a6..974fbd9ac 100644 --- a/src/pipecat/services/stt_latency.py +++ b/src/pipecat/services/stt_latency.py @@ -44,6 +44,7 @@ OPENAI_TTFS_P99: float = 2.01 OPENAI_REALTIME_TTFS_P99: float = 1.66 SAMBANOVA_TTFS_P99: float = 2.20 SARVAM_TTFS_P99: float = 1.17 +SMALLEST_TTFS_P99: float = DEFAULT_TTFS_P99 SONIOX_TTFS_P99: float = 0.35 SPEECHMATICS_TTFS_P99: float = 0.74