Skip to main content

A simple text to speech engine

Project description

text-to-speech

npm

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


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)

Uploaded Source

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