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
-
Required parameters:
api_key
: OpenAI API key
-
Required parameters(Please refer to the documentation to get the secrets):
speech_key
: Azure Speech service keyservice_region
: Azure Speech service region
-
Requirements:
- Enable the Text-to-Speech API in the Google Cloud Console
- Environment variables
GOOGLE_APPLICATION_CREDENTIALS
pointing to the service account key file
-
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
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
Project details
Release history Release notifications | RSS feed
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.2.tar.gz
(12.9 kB
view details)
Built Distribution
tetos-0.0.2-py3-none-any.whl
(15.0 kB
view details)
File details
Details for the file tetos-0.0.2.tar.gz
.
File metadata
- Download URL: tetos-0.0.2.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d8d7ed6f3cba7a98a4829fc50ab50d311fcde1976927f2ddbd92aea5f1a89d6 |
|
MD5 | fa6e6c1e7d94bb40763c198d8439a2ff |
|
BLAKE2b-256 | 30db3264ad283d0a517dd8e501f8c9a949a7c2ab24e24f55d4dfb540e9135a9b |
Provenance
File details
Details for the file tetos-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: tetos-0.0.2-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27852520b609fcffc93719a06cba97c849569d92cf6c903df171bdaa55e10637 |
|
MD5 | 7327e21cfe9878c093b738eded6755a0 |
|
BLAKE2b-256 | aa60256f66733b5fda749d9c21304cd127ff25332d6c1030c0e5728c392a8a26 |