Skip to main content

diTTS (Google Text-to-Speech), a Python library and CLI tool to interface with Google Translate text-to-speech API

Project description

gTTS

gTTS (Google Text-to-Speech), a Python library and CLI tool to interface with Google Translate's text-to-speech API. Write spoken mp3 data to a file, a file-like object (bytestring) for further audio manipulation, or stdout. https://gtts.readthedocs.io/

PyPI version Python versions Tests workflow codecov Commits Since PyPi Downloads Buy me a Coffee

Features

  • Customizable speech-specific sentence tokenizer that allows for unlimited lengths of text to be read, all while keeping proper intonation, abbreviations, decimals and more;
  • Customizable text pre-processors which can, for example, provide pronunciation corrections;

Installation

$ pip install gTTS

Quickstart

Command Line:

$ gtts-cli 'hello' --output hello.mp3

Module:

>>> from gtts import gTTS
>>> tts = gTTS('hello')
>>> tts.save('hello.mp3')

See https://gtts.readthedocs.io/ for documentation and examples.

Disclaimer

This project is not affiliated with Google or Google Cloud. Breaking upstream changes can occur without notice. This project is leveraging the undocumented Google Translate speech functionality and is different from Google Cloud Text-to-Speech.

Project

Licence

The MIT License (MIT) Copyright 짤 2014-2024 Pierre Nicolas Durette & Contributors

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

diTTS-2.6.7.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

diTTS-2.6.7-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

Details for the file diTTS-2.6.7.tar.gz.

File metadata

  • Download URL: diTTS-2.6.7.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for diTTS-2.6.7.tar.gz
Algorithm Hash digest
SHA256 9a4fec398eaaaa3603c1eaed2d2f58fc43f1e7995ce93dab75e22224c6142d8d
MD5 4009890a4ca2a9a3c1f74ca9857474df
BLAKE2b-256 8d5dc33d98186646c7af01f1da76e1513cdf40c0c510310a2ab6afcdfdf48790

See more details on using hashes here.

File details

Details for the file diTTS-2.6.7-py3-none-any.whl.

File metadata

  • Download URL: diTTS-2.6.7-py3-none-any.whl
  • Upload date:
  • Size: 26.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for diTTS-2.6.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6e563b35df018a42fe25e5412d582dcd63a22c2cc520ad060c8a9575322e1f78
MD5 baeecdd939a16e0e28c8975b94c31085
BLAKE2b-256 b6116fbfaf35a2691a79b6d6614ac33640f490387277d1147cd388edea4335a3

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 Pingdom Monitoring Sentry Error logging StatusPage Status page