fix missing SMALLEST_TTFS_P99 constant
This commit is contained in:
committed by
Mark Backman
parent
8b25ced722
commit
2aca8619e1
@@ -330,11 +330,7 @@ class SmallestTTSService(InterruptibleTTSService):
|
|||||||
|
|
||||||
if status == "complete":
|
if status == "complete":
|
||||||
msg_request_id = msg.get("request_id")
|
msg_request_id = msg.get("request_id")
|
||||||
if (
|
if self._context_id and msg_request_id and msg_request_id == self._context_id:
|
||||||
self._context_id
|
|
||||||
and msg_request_id
|
|
||||||
and msg_request_id == self._context_id
|
|
||||||
):
|
|
||||||
await self.stop_all_metrics()
|
await self.stop_all_metrics()
|
||||||
await self.push_frame(TTSStoppedFrame(context_id=self._context_id))
|
await self.push_frame(TTSStoppedFrame(context_id=self._context_id))
|
||||||
self._context_id = None
|
self._context_id = None
|
||||||
@@ -496,9 +492,7 @@ class SmallestHttpTTSService(TTSService):
|
|||||||
self._session = aiohttp.ClientSession()
|
self._session = aiohttp.ClientSession()
|
||||||
except ModuleNotFoundError as e:
|
except ModuleNotFoundError as e:
|
||||||
logger.error(f"Exception: {e}")
|
logger.error(f"Exception: {e}")
|
||||||
logger.error(
|
logger.error("In order to use Smallest HTTP TTS, you need to `pip install aiohttp`.")
|
||||||
"In order to use Smallest HTTP TTS, you need to `pip install aiohttp`."
|
|
||||||
)
|
|
||||||
raise Exception(f"Missing module: {e}")
|
raise Exception(f"Missing module: {e}")
|
||||||
|
|
||||||
async def stop(self, frame: EndFrame):
|
async def stop(self, frame: EndFrame):
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ OPENAI_TTFS_P99: float = 2.01
|
|||||||
OPENAI_REALTIME_TTFS_P99: float = 1.66
|
OPENAI_REALTIME_TTFS_P99: float = 1.66
|
||||||
SAMBANOVA_TTFS_P99: float = 2.20
|
SAMBANOVA_TTFS_P99: float = 2.20
|
||||||
SARVAM_TTFS_P99: float = 1.17
|
SARVAM_TTFS_P99: float = 1.17
|
||||||
|
SMALLEST_TTFS_P99: float = DEFAULT_TTFS_P99
|
||||||
SONIOX_TTFS_P99: float = 0.35
|
SONIOX_TTFS_P99: float = 0.35
|
||||||
SPEECHMATICS_TTFS_P99: float = 0.74
|
SPEECHMATICS_TTFS_P99: float = 0.74
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user