█

AI/TLDR

Buy me a coffee
Buy me a coffee

eSpeak NG

Compact formant speech synthesiser covering 100+ languages

Audio, Music & VoiceOpen source
Language
C
License
GPL-3.0
IN SHORT

What is eSpeak NG?

eSpeak NG is a compact open-source text-to-speech synthesizer for Linux, Windows, Android, BSD, Mac and other systems, supporting more than 100 languages and accents. It sits in the Audio, Music & Voice category of the Multimodal Generation tools and is open-source, written in C and licensed GPL-3.0. To get started: install from your distribution's package manager.

Overview

eSpeak NG is a compact open-source text-to-speech synthesizer for Linux, Windows, Android, BSD, Mac and other systems, supporting more than 100 languages and accents. It descends from the eSpeak engine created by Jonathan Duddington, which began life as `speak` on Acorn/RISC_OS in 1995; Reece H. Dunn began maintaining a POSIX-friendly fork on GitHub in 2010, and the project was formally forked to eSpeak NG in late 2015.

It uses formant synthesis rather than concatenating recorded human speech. That is the central trade-off: the whole program plus data for many languages totals only a few megabytes and the speech stays intelligible at very high speaking rates, but it sounds less natural and smooth than neural or unit-selection systems. For screen readers, embedded devices and low-latency uses, that trade is usually the right one. Klatt formant synthesis is also supported, and MBROLA diphone voices can be used as a backend.

In modern AI pipelines eSpeak NG is most often reached for as a grapheme-to-phoneme front end rather than as the final voice. It can translate text into phoneme codes with pitch and length information, which is exactly what many neural TTS models need as input, so it sits underneath a good deal of contemporary speech tooling. It ships as a command-line program, a shared library (a DLL on Windows) exposing a C API that is API- and ABI-compatible with espeak 1.48.15, and a SAPI5 version on Windows for screen readers.

What it does

  • More than 100 languages and accents in a package totalling only a few megabytes
  • Formant synthesis that stays intelligible at high speaking rates, plus Klatt synthesis and MBROLA diphone voice support
  • Text-to-phoneme translation with pitch and length information — usable as a front end for other synthesis engines
  • Multiple voices whose characteristics can be altered, with speech output to a WAV file
  • Partial SSML support, and HTML input handling
  • Available as a CLI, a shared library with a C API compatible with espeak 1.48.15, and a Windows SAPI5 voice

Getting started

eSpeak NG is packaged by most Linux distributions, so a package manager install is the usual route. The user guide covers installation and the manual pages document the full command line.

Install from your distribution's package manager

Pick the line matching your distribution.

bashbash
sudo apt-get install espeak-ng    # Debian, Ubuntu, Mint
sudo yum install espeak-ng        # CentOS, Fedora
sudo pacman -S espeak-ng          # Arch, SteamOS, EndeavourOS

On Windows, install the release package

Open the project's Releases page, click Latest release, download the appropriate .msi file and run the installer.

Speak some text

The espeak-ng binary accepts the same command-line options as espeak, with additions such as selecting the output audio device. The build also creates an `espeak` symlink to `espeak-ng`.

bashbash
espeak-ng "Hello world"

If no sound comes out, pipe the audio

When espeak-ng was built without pcaudiolib, a direct call produces no sound. Writing to stdout and piping to your audio player is the documented workaround; building with libpulse-dev or pcaudiolib installed fixes it properly.

bashbash
espeak-ng hello --stdout | aplay

Use it as a library or a phoneme front end

The integration guide covers calling libespeak-ng through `espeak-ng/speak_lib.h`; the building guide covers compiling from source on Windows, Linux, Mac, BSD and Android.

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Generate phoneme sequences as the grapheme-to-phoneme front end for a neural TTS model
  • Add speech output to an embedded or offline device where a neural voice will not fit
  • Drive a screen reader or accessibility tool that needs low latency and very fast speech rates
  • Produce WAV narration in one of 100+ languages without calling a hosted API

How eSpeak NG compares

eSpeak NG alongside other open-source audio, music & voice tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
VoiceStudio★ 121kA local-first desktop voice studio that clones and designs voices, dubs video, and handles dictation, running 16 text-to-speech and 11 speech-recognition engines on your own hardware.
Whisper★ 114kOpenAI's speech recognition model that transcribes and translates audio across many languages.
GPT-SoVITS★ 64.3kAn open-source WebUI that clones a voice from a short audio sample and turns text into speech, with zero-shot and few-shot fine-tuning.
Voicebox★ 61.6kLocal-first voice studio that clones a voice from a short sample, generates speech across seven TTS engines and 23 languages, handles system-wide dictation, and speaks for agents over MCP.
VibeVoice★ 57.6kMicrosoft's text-to-speech model for generating long, expressive multi-speaker audio like podcasts.
whisper.cpp★ 55.7kA dependency-free C/C++ port of Whisper built on ggml, running speech recognition on CPU, Metal, CUDA, Vulkan and NPUs from phones to servers.
Coqui TTS★ 46.3kA library of text-to-speech models including the multilingual XTTS voice-cloning model.
eSpeak NG★ 7.1kCompact formant speech synthesiser covering 100+ languages