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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gTTS-2.1.0.tar.gz (27.1 kB view details)

Uploaded Source

Built Distributions

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

gTTS-2.1.0-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

gTTS-2.1.0-py2-none-any.whl (25.2 kB view details)

Uploaded Python 2

File details

Details for the file gTTS-2.1.0.tar.gz.

File metadata

  • Download URL: gTTS-2.1.0.tar.gz
  • Upload date:
  • Size: 27.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for gTTS-2.1.0.tar.gz
Algorithm Hash digest
SHA256 ef861f635b82391dccd4644a286c5563fc7373bc3a96acb19e1d2224393cf262
MD5 638a32aff1340117914f1176d591815f
BLAKE2b-256 11fc9eb6c45693dc3e72d598393d14d8e2f0845d9ac0eef1811fb08bcfafd387

See more details on using hashes here.

File details

Details for the file gTTS-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: gTTS-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for gTTS-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 803e7c2c970d58020f068846522bb051b08c478a2e695896d3e344977167d169
MD5 188de22d1f384b4a69a439585322a3d1
BLAKE2b-256 b5e729f8d334627629aa842ecd13a77c82c5419de849c53e906f472ce7e0c768

See more details on using hashes here.

File details

Details for the file gTTS-2.1.0-py2-none-any.whl.

File metadata

  • Download URL: gTTS-2.1.0-py2-none-any.whl
  • Upload date:
  • Size: 25.2 kB
  • Tags: Python 2
  • Uploaded using 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

File hashes

Hashes for gTTS-2.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 b1fd0a8731225cd00355e39443dfe85efa0db6be01fe149cdb62c6f1db6fdbcf
MD5 b52db4bde705cfc90f517926acacf4c8
BLAKE2b-256 dd5115bfe852e060f7abf3174579ec3af42c5df8e07d8503428289d8238ea657

See more details on using hashes here.

Release history Release notifications | RSS feed

2.5.4

2 files

2.5.3

2 files

2.5.2

2 files

2.5.1

2 files

2.5.0

2 files

2.4.0

2 files

2.3.2

2 files

2.3.1

2 files

2.3.0

2 files

2.2.4

1 file

2.2.3

2 files

2.2.2

2 files

2.2.1

2 files

2.2.0

2 files

2.1.2

2 files

2.1.1

3 files

This release

2.1.0 This release

3 files

2.0.4

3 files

2.0.3

1 file

2.0.2

1 file

2.0.1

1 file

2.0.0

1 file

1.2.2

1 file

1.2.1

1 file

1.2.0

1 file

1.1.8

1 file

1.1.7

1 file

1.1.6

1 file

1.1.5

1 file

1.1.4

1 file

1.1.3

1 file

1.1.2

1 file

1.0.7

1 file

1.0.6

1 file

1.0.5

1 file

1.0.4

1 file

1.0.3

1 file

1.0.2

1 file

1.0

1 file

Supported by

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