gTTS (Google Text-to-Speech) is a Python library and command-line tool that wraps the speech functionality of Google Translate. It lets you send text to the Google Translate TTS endpoint and receive spoken audio back as MP3 data, either written to a file, a file-like object, or standard output. The library is designed to handle long texts, using a speech-specific sentence tokenizer that keeps intonation and punctuation natural while splitting requests into acceptable chunks. It supports customizable text pre-processors, which can correct pronunciations, tweak formatting, or handle domain-specific vocabulary before sending it to the API. gTTS is primarily aimed at developers who want a quick way to add cloud-backed speech to scripts, apps, or pipelines without managing any model weights locally. A small CLI utility, gtts-cli, makes it easy to test or batch-generate MP3 files right from the shell.

Features

  • Python library and CLI that interface with Google Translate’s TTS API
  • Writes MP3 output to files, file-like objects, or stdout for easy piping
  • Sentence tokenizer that supports long texts while keeping natural prosody
  • Customizable text pre-processors for pronunciation and formatting tweaks
  • Simple one-line CLI usage (gtts-cli) for quick audio generation
  • Cross-platform support with docs, tests, and MIT licensing

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow gTTS

gTTS Web Site

Other Useful Business Software
Paessler - Monitor Your Whole Network in Minutes Icon
Paessler - Monitor Your Whole Network in Minutes

Auto-discovery finds your devices and deploys pre-configured sensors instantly. No project plan required, just visibility from day one.

Waiting weeks for a monitoring rollout isn't an option when infrastructure doesn't stop running. PRTG's auto-discovery scans your network and suggests from over 200 pre-configured sensor types, so you're watching servers, applications and devices within minutes, not after a multi-week deployment. Enterprise-strength monitoring, without the enterprise complexity. Start your free trial today.
Start Free 30-Day Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of gTTS!

Additional Project Details

Programming Language

Python

Related Categories

Python Text to Speech Software, Python Text-to-Speech (TTS) Models

Registered

2025-11-28