qmetrics.net

gTTS

Python library and CLI for Google Translate speech

Input & DictationNo commits in 18+ monthsDesktop/CLI app

gTTS has had no code changes for over 18 months (last commit 1 year ago).

gTTS screenshot

gTTS connects to Google Translate’s text-to-speech API from Python or the command line. It writes spoken MP3 bytes to files, streams, or stdout for further use.

Overview

gTTS (Google Text-to-Speech) is a Python package and companion CLI that requests speech audio through Google Translate’s undocumented TTS capability. It is not affiliated with Google Cloud Text-to-Speech, and upstream behavior can change without notice.

You pass text and receive MP3 audio suitable for saving, piping, or loading into other audio tools. Output can go to a path, a file-like object, or standard output.

The library includes configurable sentence tokenization for long passages while handling abbreviations, decimals, and similar cases, plus optional text pre-processors such as pronunciation tweaks. Documentation covers module usage, the gtts-cli command, language helpers, and tokenizer customization.

Install from PyPI with pip. Typical workflows use either gtts-cli for one-off generation or the gTTS class in application code.

Key features

  • Google Translate text-to-speech API client
  • MP3 output to file, buffer, or stdout
  • Configurable speech sentence tokenizer
  • Customizable text pre-processors
  • Command-line gtts-cli tool
  • Python module API
  • Language and accent helpers

Use cases

  • Generate speech MP3 from scripts
  • CLI quick TTS for short phrases
  • Embed TTS in Python applications
  • Long-form text with custom tokenization

Tags

Similar software

VoiceStudio

Local AI voice cloning, dubbing and transcription

VoiceStudio runs on your hardware to clone voices, design new ones, dub video, dictate, transcribe, and build audiobooks across many languages without requiring an account.

★ 119.3k⟳ todayAGPL-3.0
Open Source Alternative to:ElevenLabs

Voicebox

Local AI voice studio for speech and dictation

Voicebox clones voices, synthesizes speech with multiple TTS engines, dictates into other apps, and speaks through MCP-connected agents—all on your hardware.

★ 61.4k⟳ todayMIT
Open Source Alternative to:ElevenLabsWispr Flow

whisper.cpp

Portable C/C++ inference for Whisper speech recognition

Whisper.cpp runs OpenAI Whisper ASR with a dependency-light C/C++ core and CLI tools. It targets CPUs and many GPU and NPU accelerators across common operating systems.

★ 55.6k⟳ 2 days agoMIT

Handy

Offline cross-platform desktop speech-to-text tool

Handy is a desktop speech-to-text application that runs fully offline on your computer. Press a shortcut, speak, and transcribed text is pasted into the active text field.

★ 40.5k⟳ yesterdayMIT
Input & DictationDesktop/CLI app
Open Source Alternative to:Aqua VoiceDragon NaturallySpeaking+1

OpenLogi

Local Logitech device control without cloud accounts

OpenLogi is a native desktop app that configures Logitech mice, keyboards, webcams, and lights over HID++ and UVC. It stores settings in TOML and includes a CLI with a JSON automation API.

★ 26.3k⟳ 5 days agoApache-2.0
Input & DictationDesktop/CLI app
Open Source Alternative to:Logitech Options+

whisperX

Speech recognition with word timestamps and diarization

WhisperX transcribes audio with batched Whisper inference, then aligns words using phoneme models for sharper timestamps. Optional speaker diarization labels who spoke when you provide a Hugging Face token.

★ 25.8k⟳ 6 days agoBSD-2-Clause