• Stars
    star
    2,251
  • Rank 20,461 (Top 0.5 %)
  • Language
    Python
  • License
    MIT License
  • Created over 10 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Python library and CLI tool to interface with Google Translate's text-to-speech API

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. http://gtts.readthedocs.org/

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 http://gtts.readthedocs.org/ 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-2023 Pierre Nicolas Durette & Contributors

More Repositories

1

zsh-lux

zsh plugin to toggle light/dark modes of macOS but also of iTerm, Visual Studio Code and anything you can script/theme
Shell
32
star
2

pi-packer

An opinionated HashiCorp Packer template with integrated cloud-init to build 'cloud instances-like' images for Raspberry Pi
HCL
25
star
3

mac-setup

My macOS setup / dotfiles / yadm
Shell
12
star
4

pybatchexecute

Python package to ease interactions with Google's batchexecute batch RPC system
Python
11
star
5

spinnaker-playground

Lightweight (multipass/k3s) and local full-featured Spinnaker playground
9
star
6

cv

My resumΓ©. Powered by LaTeX, deployed to Google Cloud, managed by Terraform Cloud
TeX
7
star
7

gh-pages-url-shortener-action

Lightweight GitHub Pages URL shortener powered by GitHub Actions
Shell
7
star
8

viastations

VIA Rail Canada stations data
Python
6
star
9

ascii-reply

GitHub Action that replies to an issue/PR comment, with that comment in ASCII art text.
Python
5
star
10

gh-actions-auto-docs

A GitHub Action for generating GitHub Action Markdown documentation
Python
4
star
11

rippler

Library to interact with the Ripples drink printer platform
Python
3
star
12

macsay

Like cowsay but it's the original Macintosh "information" dialog icon instead of a cow.
Python
3
star
13

system-watch-clock

A pixelated desk clock inspired by the original Macintosh System watch cursor
Python
3
star
14

presto-report

Generate (and email) transit activity reports from an Ontario PRESTOCard account
JavaScript
2
star
15

ghapg

ghapg: GitHub Actions Playground
Shell
2
star
16

aws_prodbot

A Twitter bot that generates absurd-yet-plausible AWS product names and descriptions.
Python
1
star
17

viatools

Tools and utils to retrieve and work with VIA Rail Canada data (such as stations, trips, boarding passes)
Python
1
star