fix missing SMALLEST_TTFS_P99 constant

This commit is contained in:
Harshita Jain
2026-02-27 14:27:39 -08:00
committed by Mark Backman
parent 8b25ced722
commit 2aca8619e1
2 changed files with 3 additions and 8 deletions

View File

@@ -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):

View File

@@ -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