Skip to main content

Unified interface for multiple Text-to-Speech (TTS) providers

Project description

TeToS

PyPI Python License Downloads Documentation Status

A unified interface for multiple Text-to-Speech (TTS) providers.

Supported TTS providers

Installation

Requires Python 3.8 or higher.

pip install tetos

CLI Usage

tetos PROVIDER [PROVIDER_OPTIONS] TEXT [--output FILE]

Please run tetos --help for available providers and options.

Examples

tetos google "Hello, world!"
tetos azure "Hello, world!" --output output.mp3   # save to another file
tetos edge --lang zh-CN "你好,世界!"  # specify language
tetos openai --voice echo "Hello, world!"  # specify voice

API Usage

Use Azure TTS as an example:

from tetos.azure import AzureSpeaker

speaker = AzureSpeaker(speech_key='...', speech_region='...')
speaker.say('Hello, world!', 'output.mp3')

The initialization parameters may be different for other providers.

Behind a proxy

TeTos respects the proxy environment variables HTTP_PROXY, HTTPS_PROXY, ALL_PROXY and NO_PROXY.

TODO

  • Google TTS
  • SSML support

License

Apache License 2.0

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

tetos-0.2.0.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

tetos-0.2.0-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file tetos-0.2.0.tar.gz.

File metadata

  • Download URL: tetos-0.2.0.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for tetos-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ba64343583d83fbab3ded03edecaad31dfc497a30e50cca042bfc6729a208569
MD5 bd49952c94e38d362b7a69544a8905c4
BLAKE2b-256 a1209592e667c03e20deb8b425c21f455e361f23498431d80015548d75fa2882

See more details on using hashes here.

File details

Details for the file tetos-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: tetos-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 22.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for tetos-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9976ff135d58958cd9614420c837825e2dee5f02ba5b9d28f50e54f405139297
MD5 74c1cc8692abc9a21fc3d59469586a6b
BLAKE2b-256 08c03aa7c952aab54ba36474a15ccdaaac3d7028529c726c932f479dd699f628

See more details on using hashes here.

Supported by

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