gTTS (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
. Or simply pre-generate Google Translate TTS request URLs to feed to an external program.
http://gtts.readthedocs.org/
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ef861f635b82391dccd4644a286c5563fc7373bc3a96acb19e1d2224393cf262
|
|
MD5 |
638a32aff1340117914f1176d591815f
|
|
BLAKE2b-256 |
11fc9eb6c45693dc3e72d598393d14d8e2f0845d9ac0eef1811fb08bcfafd387
|
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
803e7c2c970d58020f068846522bb051b08c478a2e695896d3e344977167d169
|
|
MD5 |
188de22d1f384b4a69a439585322a3d1
|
|
BLAKE2b-256 |
b5e729f8d334627629aa842ecd13a77c82c5419de849c53e906f472ce7e0c768
|
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b1fd0a8731225cd00355e39443dfe85efa0db6be01fe149cdb62c6f1db6fdbcf
|
|
MD5 |
b52db4bde705cfc90f517926acacf4c8
|
|
BLAKE2b-256 |
dd5115bfe852e060f7abf3174579ec3af42c5df8e07d8503428289d8238ea657
|