Skip to main content

Aristech TTS-Client for Python

This is the Python client implementation for the Aristech TTS-Server.

Installation

pip install aristech-tts-client

Usage

from aristech_tts_client import TtsClient, SpeechRequest, SpeechRequestOption

client = TtsClient(host='tts.example.com')
data = client.synthesize(SpeechRequest(
    text='Hello, world!',
    options=SpeechRequestOption(
      voice_id='some-voice-id'
    )
))
with open('output.wav', 'wb') as f:
    f.write(data)

There are several examples in the examples directory:

  • file.py: Pretty much the same as the example above.
  • streaming.py: Demonstrates how to stream audio to a sox process which plays the audio as it is being streamed.
  • voices.py: Demonstrates how to get the available voices from the server.
  • phoneset.py: Demonstrates how to get the phoneset for a voice.
  • transcribe.py: Demonstrates how to get how a voice would pronounce a given word.

You can run the examples directly using python like this:

  1. Create a .env file in the python directory:
HOST=tts.example.com
# The credentials are optional but probably required for most servers:
TOKEN=your-token
SECRET=your-secret

# The following are optional:
# ROOT_CERT=your-root-cert.pem # If the server uses a self-signed certificate
# VOICE_ID=some-available-voice-id
  1. Run the examples, e.g.:
python examples/streaming.py

Metadata

Release files for aristech-tts-client 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aristech-tts-client 2.0.1
File Size Uploaded Provenance Actions
aristech_tts_client-2.0.1.tar.gz 18.8 kB Without provenance Details for aristech_tts_client-2.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aristech-tts-client 2.0.1
File Interpreter ABI Platform Actions
aristech_tts_client-2.0.1-py3-none-any.whl Python 3 none any Details for aristech_tts_client-2.0.1-py3-none-any.whl

Total release size: 39.0 kB

Release files / aristech_tts_client-2.0.1.tar.gz

Download URL aristech_tts_client-2.0.1.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f12b97d90e7c68577f9ff22a02c055a8a7710d3072e27e1e49e00ea6264e7304
BLAKE2b-256 checksum
How to use checksums
1a4296c82c9e99c7ad99a4002c760a2fc6035cf49e5a3d72bbebdea502108907
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.6

Release files / aristech_tts_client-2.0.1-py3-none-any.whl

Download URL aristech_tts_client-2.0.1-py3-none-any.whl
Size 20.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a761d0c5d8e4507e1ee3e58527a87b1b22e11ecdcdab8eaeb912be1a3d4bec5
BLAKE2b-256 checksum
How to use checksums
2f5c274eeb42db5e47144eccbef246555c5804a9dccdd9f091c85a0011f2f10a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.6

Security for aristech-tts-client 2.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page