tts
tts ¶
TTS evaluation client — httpx + httpx-sse + httpx-ws under the hood.
TTSClient ¶
TTS evaluation client — HTTP batch, streaming, and SSE.
post
async
¶
Batch POST to TTS endpoint. Returns raw httpx.Response.
stream
async
¶
Chunked streaming POST. Yields httpx.Response for aiter_bytes/aiter_lines.
sse
async
¶
SSE streaming POST. Yields EventSource for aiter_sse().
ws
async
¶
Open WebSocket session for TTS streaming (e.g. WebSocket-based TTS servers).