Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Simple TTS (Text-To-Speech) broker for Python

Project description

ttsbroker

Simple TTS (Text-To-Speech) broker for Python

License: Apache License 2.0

Warning: Refer to TTS provider license about caching, storing, redistributing and playing rights for the audio files generated with TTS engine.

The module contains providers for:

  • gcloud: Google Cloud TTS (requires cloud service account key), requires oauth2client python module

  • polly: Amazon Polly (requires AWS API keys), requires boto3 python module

  • watson: IBM Watson (requires Watson service credentials)

Usage example:

from ttsbroker import TTSEngine as TTSE

e = TTSE(
    cache_dir='/data/cache/gcloud',
    cache_format='ogg',
    device=0,
    gain=0,
    provider='gcloud')
e.set_key('client_service_key.json')    
e.say('test number one', gain=2)
e.say('test number two', provider_options={ 'voice': 'en-US-Wavenet-E' })

(c) 2018 Altertech Group, https://www.altertech.com/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ttsbroker, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size ttsbroker-0.1.3.tar.gz (6.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page