A simple text to speech engine
Project description
text-to-speech
A simple text to speech engine
Installation
To install the package run this command:
pip install text-to-speech
Usage
Speak
Write ‘hello’ in English
from text_to_speech import speak
speak("hello", lang="en")
Write ‘bonjour’ in French
from text_to_speech import speak
speak("bonjour", lang="fr")
Write ‘hello’ in English slow
from text_to_speech import speak
speak("hello", lang="en", slow=True)
"text" is the text, and "lang" is an IETF language tag such as en or pt-br, "slow" is the option if it has to be read slow or not.
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
text_to_speech-1.3.1.tar.gz
(2.1 kB
view hashes)