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 details)
Built Distribution
pyfreetts-0.1.1-py3-none-any.whl
(10.6 kB
view details)
File details
Details for the file pyfreetts-0.1.1.tar.gz
.
File metadata
- Download URL: pyfreetts-0.1.1.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.7.8 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fa205d23f49ac5cb6b2ee0adac1035323c6d4f3bd9d56b0730b60e4c3e77b26 |
|
MD5 | 3763b782b0c09a311ff020a0788caea0 |
|
BLAKE2b-256 | 6ddd3d8eef0526070e9332c5a870eb60702ea8b7eb7d1404d133f7d30d68eee7 |
File details
Details for the file pyfreetts-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: pyfreetts-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.7.8 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77adbc343d08f7f32b49b27237879c6ea254d42b3c2f374ed74b137a83b6a765 |
|
MD5 | 40af28eee3de8aa2a3afe6bb44c0a606 |
|
BLAKE2b-256 | fa022ff1a7d2899f28fcfe71e7d441d99420969c03c2de16f8468d7b09bfd24d |