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.0.tar.gz (27.3 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.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kova_tts-0.1.0.tar.gz
  • Upload date:
  • Size: 27.3 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.0.tar.gz
Algorithm Hash digest
SHA256 3d01e4e68e3b490c303743e8ddb0eda59d34147e87362f3aa25d60b95d9d65c2
MD5 29b7cd76b51c6401f1f5756cd6686a96
BLAKE2b-256 08645256f353e108c39cb81621ffc3ee8f477627c0f06ade93f9c14b18eb6f08

See more details on using hashes here.

Provenance

The following attestation bundles were made for kova_tts-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: kova_tts-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c35f53b70faf32206963e7820bae0e905fa8a3f409414b01506415df873276d
MD5 b2afef5d973d4126339f79f1c512f458
BLAKE2b-256 5bbff1b98d13013bc2277d9082c196ab7cbc82306a6afbb16eeaa524feade7f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for kova_tts-0.1.0-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