Skip to main content

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

Project description

TeToS

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

Supported TTS providers

  • Edge-TTS

  • OpenAI TTS

    Required parameters:

    • api_key: OpenAI API key
  • Azure TTS

    Required parameters(Please refer to the documentation to get the secrets):

    • speech_key: Azure Speech service key
    • service_region: Azure Speech service region
  • Volcengine TTS(火山引擎)

    Required parameters:

    • access_key: Volcengine access key ID. (Get it here)
    • secret_key: Volcengine access secret key. (Get it here)
    • app_key: Volcengine app key

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.

API Usage

Use Azure TTS as an example:

from tetos.azure import AzureSpeaker
import asyncio

async def main():
    speaker = AzureSpeaker(speech_key='...', service_region='...')
    await speaker.synthesize('Hello, world!', 'output.mp3')

if __name__ == '__main__':
    asyncio.run(main())

The initialization parameters may be different for other providers.

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

Uploaded Source

Built Distribution

tetos-0.0.1-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tetos-0.0.1.tar.gz
Algorithm Hash digest
SHA256 02054c4de5835b7da8c380050b1bff49704e9f2c7821608d04b3cf30b685a5a1
MD5 fa3d893c2499837f8fd9346ff114e0c3
BLAKE2b-256 67c7c6a8d44b011d07d365e7083d39378e9203abde2832c326d9e41af13261ec

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: tetos-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.2 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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1b8599d2ba15b99185106e3ff6f32e6cf9e9bfb49c5a07263e3c9c2f6ec0061e
MD5 5e38acd7ec3ea6314c40fa087fbfab82
BLAKE2b-256 270273fae880d737084376eb0474deb705c9e853f443206b3c0c6d7b4134edf5

See more details on using hashes here.

Provenance

Supported by

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