Skip to main content

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


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)

Uploaded Source

Built Distribution

pyfreetts-0.1.1-py3-none-any.whl (10.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page