Skip to main content

Audra v2 TTS client — OpenAI-compatible speech API

Project description

audra

Thin httpx wrapper for the Audra v2 TTS API.

from audra import Audra

client = Audra("sk-audra-...")

audio = client.speech(
    "Hello[pause:1.2s]world",
    voice="kore",
    delivery_profile="podcast_v3",
    normalize=True,
)

result = client.speech_captioned("Hello captioned world", voice="kore")
open("out.mp3", "wb").write(result["audio"])
print(result["captions"]["words"])

phonemes = client.phonemize("Roth IRA", voice="kore")

Migration guide: https://audratalks.com/migrate

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

audra-0.2.4.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

audra-0.2.4-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file audra-0.2.4.tar.gz.

File metadata

  • Download URL: audra-0.2.4.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for audra-0.2.4.tar.gz
Algorithm Hash digest
SHA256 be5a75892539a73da95b2252a1c6ce6a7da21d3bd2e953f7290e80d411d914b3
MD5 d127f0ec5b2299a14304c9ac8d1eb20a
BLAKE2b-256 e20086b37e016b437f0f3e717fd5e10d7e628a774f3a943e5a3f1ef62e6da883

See more details on using hashes here.

File details

Details for the file audra-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: audra-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for audra-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b75ea544d3cfbb1048e2b9be7361e92d6eb99e695ecf63054ed2a7f49f854ba8
MD5 9f4dadfe0eae7f5356bd84741614f1d4
BLAKE2b-256 c08b84ca9858179595ae24c611ac52f6b6d6ef4f915a1afee8eb3e66644804e9

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