8000 GitHub - frostming/tetos at 0.0.2
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

License

Notifications You must be signed in to change notification settings

frostming/tetos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeToS

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.

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

0