Convert text to speech with the pretty voices
Project description
Features
- Support text to speech with many pretty voices options
- Support download file mp3 from TTS
Installation
Windows
python -m pip install pyfreetts
Linux
pip install pyfreetts
macOS
sudo pip3 install pyfreetts
How does it work?
Setup Language for Converting
To setup language and voice using the method setup_voice(language_code)
, where language_code
:
- English US :
am
- English UK :
br
- Portuguese (Brazil):
pt-br
- Portuguese (Portugal):
pt
- The other languages :
ISO LANGUAGE CODE 639-1
from pyfreetts import Text2Speech
module = Text2Speech()
module.setup_voice("am")
module.convert("how are you?")
module.save_to_file("test.mp3")
module.close()
Output
>> All voices for your language:
>> 1. Joey - Male - SAPI5
>> 2. Justin - Male - SAPI5
>> 3. Matthew - Male - SAPI5
>> 4. Salli - Female - SAPI5
>> 5. Joanna - Female - SAPI5
>> 6. Ivy - Female - SAPI5
>> Make your choice: 3
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
pyfreetts-0.1.1.tar.gz
(10.5 kB
view hashes)
Built Distribution
pyfreetts-0.1.1-py3-none-any.whl
(10.6 kB
view hashes)
Close
Hashes for pyfreetts-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77adbc343d08f7f32b49b27237879c6ea254d42b3c2f374ed74b137a83b6a765 |
|
MD5 | 40af28eee3de8aa2a3afe6bb44c0a606 |
|
BLAKE2b-256 | fa022ff1a7d2899f28fcfe71e7d441d99420969c03c2de16f8468d7b09bfd24d |