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.1.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

tetos-0.2.1-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tetos-0.2.1.tar.gz
  • Upload date:
  • Size: 20.2 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.1.tar.gz
Algorithm Hash digest
SHA256 cac0647495e517839ae16fb1a6f38b14a1dc310797dd58bb26751309701ff305
MD5 653de110a7dc88921f4b13fcc934c196
BLAKE2b-256 371169293e702f9d572d909b3ef2355099de4ef5866aab69f260045817fb3a16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tetos-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 23.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4a2ed572c32ed5036939b73e28b13b482161c295b6dcc9c6eacdb4f79aeb72b
MD5 e7fd0bee3c8c5de8c2c5f9f47b82703b
BLAKE2b-256 48a89f4f4d9e002b526a91de73fc6ad6683a4fe04591ae1deed6563ed1c49ea6

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