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 details)
File details
Details for the file text_to_speech-1.3.1.tar.gz
.
File metadata
- Download URL: text_to_speech-1.3.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0608cd0df441d3baba3c9e7eb20aa022195d0a8c170bd0311bc09be3fc4996f5 |
|
MD5 | 9b0e4ef98a374258ebf2efa9cff790b5 |
|
BLAKE2b-256 | e43beef237f41b9732eeb65239780ee6533548f2bbee46310a98314267a4ac67 |