Skip to main content
kova-tts is the official Python client for the Kova TTS API. Source: github.com/evalabs-ai/kova-tts-clients.

Install

Requires Python 3.10+.

Initialize

By default the client targets https://api.kova.ai/v1/tts. Override base_url for staging or self-hosting:

Sync TTS

result.audio is the decoded audio bytes (bytes), not base64.

Streaming TTS

stream_tts returns an async iterator of events:

WebSocket

Helpers

For raw PCM → WAV file conversion (used in the WebSocket example), use stdlib wave:
For listing voices, use raw HTTP — the SDK does not currently expose a list_voices method:

Errors

The SDK raises a subclass of KovaTTSError on non-2xx responses. The exception carries the HTTP status and the parsed JSON body:
See Errors for the full status-code reference.

See also