Skip to main content

Python SDK for the Tontaube text-to-speech API

Project description

tontaube

Python SDK for the Tontaube text-to-speech API.

Installation

pip install tontaube

Usage

import tontaube

with tontaube.Client(api_key="your-api-key") as client:
    speakers = client.list_speakers()
    response = client.generate_speech(
        text="Tell me what we are building today, and I will get right to work.",
        speaker_id=speakers[0].id,
    )

with open("speech.wav", "wb") as f:
    f.write(response.content)

Async client is also available via tontaube.AsyncClient. See the examples/ folder for more usage patterns.

For full API reference see tontaube.ai/api-reference.

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

tontaube-0.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

tontaube-0.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tontaube-0.1.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tontaube-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f26421f37f1fa60e1f66e3c0f0762e84d9de6b3d61c4c4ba15407813c94ab0a0
MD5 d092c5e0ebc8b94974dd1e4efcacfeed
BLAKE2b-256 1d62a0d00961e0340fac4f2068d7aeb3a1bf890a8c2eb990be497fa7b2d7d1f0

See more details on using hashes here.

File details

Details for the file tontaube-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tontaube-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tontaube-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 719e4837677e7035275e4ba1d0c433d9cec5919c2e3f6731dedb20b0a0d4dce4
MD5 435e1ea4f571503e033e5691aa4019c7
BLAKE2b-256 0754868be6ab84541f25e8370dc2df78c266553bb3c3a0e8bfdb30df75f9070f

See more details on using hashes here.

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