@kova-ai/tts is the official JavaScript/TypeScript client. Works in Node 18+. Source: github.com/evalabs-ai/kova-tts-clients.
Install
Initialize
https://api.kova.ai/v1/tts. Override baseUrl for staging or self-hosting:
Sync TTS
result.audio is the decoded audio bytes (Uint8Array), not base64.
Streaming TTS
streamTTS returns an async iterable of events:
WebSocket
Helpers
For listing voices, use raw HTTP — the SDK does not currently expose a
listVoices method:
Errors
The SDK throws aKovaTTSError on non-2xx responses. The error carries the HTTP status and the parsed JSON body: