Skip to main content

text-to-speech

npm

This is a simple text to speech engine with some customizable options.

Installation

Run the following to install:

pip install text-to-speech

Usage

Speak

speak()

Params:

Text: String ? The text to be read.
Language: String ? The language (IETF language tag) to read the text in.
Slow: Boolean ? Reads text more slowly.
Save: Boolean ? If the file has to be saved or not.
File: String ? If save == true, the file name to save the mp3 to.
Speak: Boolean ? If the text has to be read out loud.

Demo:

from text_to_speech import speak

speak("Hello World", "en", save=True, file="Hello-World.mp3", speak=True)

License

MIT

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.5.3.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file text_to_speech-1.5.3.tar.gz.

File metadata

  • Download URL: text_to_speech-1.5.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for text_to_speech-1.5.3.tar.gz
Algorithm Hash digest
SHA256 cc9c69a60feffeff431fb7fad20fbefb4b67142a22ad75391fc64bcc38f35da2
MD5 c5ade77545f1625513a4415c9e4feb24
BLAKE2b-256 b83fa2e0b3626f337de85bc05dc157c3842ea20f288a23593a7d4fd1fec4e1d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page