kova-tts is the official Python client for the Kova TTS API. Source: github.com/evalabs-ai/kova-tts-clients.
Install
Initialize
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:
list_voices method:
Errors
The SDK raises a subclass ofKovaTTSError on non-2xx responses. The exception carries the HTTP status and the parsed JSON body: