Skip to main content

Official Python client for the Kova TTS API.

Project description

kova-tts

Python client for the Kova TTS API.

Install directly from GitHub before PyPI publishing:

pip install git+https://github.com/evalabs-ai/kova-tts-clients.git
from kova_tts import AudioResponseFormat, KovaTTSClient

client = KovaTTSClient(
    api_key="YOUR_API_KEY",
)

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")

result.audio is decoded file bytes as bytes. Streaming audio events expose decoded audio bytes on event.audio; WebSocket frames expose decoded PCM bytes on frame.audio.

The default endpoint is https://api.evalabs.ai/v1/tts. Override base_url only for staging or local servers.

Streaming and WebSocket APIs are async.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kova_tts-0.1.2.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kova_tts-0.1.2-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file kova_tts-0.1.2.tar.gz.

File metadata

  • Download URL: kova_tts-0.1.2.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kova_tts-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9771d72510c8f78edac04a1b75ccf0e09441b510b7b8dc59a8036a3f984a630a
MD5 a9300068913c10ffc54fa1da023957af
BLAKE2b-256 d07e6fd37f57385ca9b0df204a648a530a445789d7f19f65ee8f1d20cb766c52

See more details on using hashes here.

Provenance

The following attestation bundles were made for kova_tts-0.1.2.tar.gz:

Publisher: publish-python.yml on evalabs-ai/kova-tts-clients

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kova_tts-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: kova_tts-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kova_tts-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c1bd12aef36add5caceb1d702786ed72b1044033a99ad25578e39659812cc927
MD5 4afdf4b19ba6f38beb345a097640ff0f
BLAKE2b-256 c8436fcbf8dd23227dc825e06df056f523295c2b653b51ef540b7c33237b7586

See more details on using hashes here.

Provenance

The following attestation bundles were made for kova_tts-0.1.2-py3-none-any.whl:

Publisher: publish-python.yml on evalabs-ai/kova-tts-clients

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page