Skip to main content

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. Or simply pre-generate Google Translate TTS request URLs to feed to an external program. http://gtts.readthedocs.org/

PyPI version Python versions Push workflow codecov Commits Since PyPi Downloads

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;
  • Automatic retrieval of supported languages.

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 http://gtts.readthedocs.org/ for documentation and examples.

Project

Licence

The MIT License (MIT) Copyright © 2014-2020 Pierre Nicolas Durette

Release files for gTTS 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gTTS 2.1.0
File Size Uploaded
gTTS-2.1.0.tar.gz 27.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for gTTS 2.1.0
File Interpreter ABI Platform
gTTS-2.1.0-py3-none-any.whl Python 3 none any Details
gTTS-2.1.0-py2-none-any.whl Python 2 none any Details

Total release size: 77.6 kB

Release files / gTTS-2.1.0.tar.gz

Download URL gTTS-2.1.0.tar.gz
Size 27.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ef861f635b82391dccd4644a286c5563fc7373bc3a96acb19e1d2224393cf262
BLAKE2b-256 checksum
How to use checksums
11fc9eb6c45693dc3e72d598393d14d8e2f0845d9ac0eef1811fb08bcfafd387
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0

Release files / gTTS-2.1.0-py3-none-any.whl

Download URL gTTS-2.1.0-py3-none-any.whl
Size 25.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
803e7c2c970d58020f068846522bb051b08c478a2e695896d3e344977167d169
BLAKE2b-256 checksum
How to use checksums
b5e729f8d334627629aa842ecd13a77c82c5419de849c53e906f472ce7e0c768
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0

Release files / gTTS-2.1.0-py2-none-any.whl

Download URL gTTS-2.1.0-py2-none-any.whl
Size 25.2 kB
Tags Python 2
SHA-256 checksum
How to use checksums
b1fd0a8731225cd00355e39443dfe85efa0db6be01fe149cdb62c6f1db6fdbcf
BLAKE2b-256 checksum
How to use checksums
dd5115bfe852e060f7abf3174579ec3af42c5df8e07d8503428289d8238ea657
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/43.0.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/2.7.16

Release history Release notifications | RSS feed

2.5.4

2 release files

2.5.3

2 release files

2.5.2

2 release files

2.5.1

2 release files

2.5.0

2 release files

2.4.0

2 release files

2.3.2

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.4

1 release file

2.2.3

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.2

2 release files

2.1.1

3 release files

This release

2.1.0 This release

3 release files

2.0.4

3 release files

2.0.3

1 release file

2.0.2

1 release file

2.0.1

1 release file

2.0.0

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.8

1 release file

1.1.7

1 release file

1.1.6

1 release file

1.1.5

1 release file

1.1.4

1 release file

1.1.3

1 release file

1.1.2

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page