kova-tts
Python client for the Kova TTS API.
Install
pip install kova-tts
Setup
from kova_tts import KovaTTSClient
client = KovaTTSClient(
api_key="YOUR_API_KEY",
)
Sync
from kova_tts import AudioResponseFormat
result = client.tts(
text="Hello world.",
voice="cal",
response_format=AudioResponseFormat(encoding="mp3"),
timestamps=True,
normalize_text=True,
)
client.write_audio_file(result.audio, "out.mp3")
print(result.timestamps.words if result.timestamps else None)
Streaming
from kova_tts import AudioResponseFormat
async for event in client.stream_tts(
text="Hello world.",
voice="cal",
response_format=AudioResponseFormat(encoding="mp3"),
timestamps=True,
normalize_text=True,
):
if event.type == "audio":
print(f"received {len(event.audio)} audio bytes")
elif event.type == "timestamps":
print(event.words)
WebSocket
from kova_tts import AudioResponseFormat
async with client.websocket() as ws:
await ws.start_context(
context_id="ctx-1",
voice_id="cal",
model_id="default",
timestamps=True,
response_format=AudioResponseFormat(encoding="pcm", sample_rate=32000),
)
await ws.send_text("Hello ", context_id="ctx-1")
await ws.send_text("world.", context_id="ctx-1")
await ws.flush(context_id="ctx-1")
async for frame in ws:
match frame.type:
case "audio":
print(f"received {len(frame.audio)} audio bytes")
case "timestamps":
print(frame.timestamps.words)
case "flush_completed":
break
Response Formats
response_format supports mp3, pcm, wav, linear16, opus, mulaw, and alaw.
Metadata
Release files for kova-tts 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kova_tts-0.1.5.tar.gz | 24.0 kB | With provenance | Details for kova_tts-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kova_tts-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for kova_tts-0.1.5-py3-none-any.whl |
Total release size: 32.5 kB
Release files / kova_tts-0.1.5.tar.gz
| Download URL | kova_tts-0.1.5.tar.gz |
|---|---|
| Size | 24.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83149feb6074211b09a18fac6c42c4a8e7b6fb3e903f04283402d9f50b1c1fb5
|
|
BLAKE2b-256 checksum How to use checksums |
ae6c14382d300fea16e1feac5477fc6c091d6449466678f598076640f1936590
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 28, 2026.
Transparency logRelease files / kova_tts-0.1.5-py3-none-any.whl
| Download URL | kova_tts-0.1.5-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7bc9006b701d5fefb1bb2d34aacbad09a4c93ccfc894551f6a0218cf4c1ab6dc
|
|
BLAKE2b-256 checksum How to use checksums |
a0ba090e3e4949bb3cdab0a6279dad61328f77cd77a547ceed95bc4a4c54ce63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 28, 2026.
Transparency logSecurity for kova-tts 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for kova_tts-0.1.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.