LinuxCommandLibrary

speak-ng

eSpeak NG text-to-speech synthesizer

TLDR

Speak text

$ speak-ng "[Hello world]"
copy
Speak from file
$ speak-ng -f [file.txt]
copy
List voices
$ speak-ng --voices
copy
Use specific voice
$ speak-ng -v [en-us] "[text]"
copy
Output to file
$ speak-ng -w [output.wav] "[text]"
copy
Adjust speed
$ speak-ng -s [150] "[text]"
copy

SYNOPSIS

speak-ng [-v voice] [-s speed] [-w file] [options] [text]

DESCRIPTION

speak-ng is the command-line interface for eSpeak NG, a compact open-source text-to-speech synthesizer supporting over 100 languages and accents. It uses formant synthesis to generate speech from phoneme rules, producing intelligible output with a small footprint.
The tool reads text from command-line arguments, files, or stdin and outputs audio through the system sound device or saves it as WAV files. Voice characteristics including speed (words per minute), pitch, and volume are adjustable. SSML (Speech Synthesis Markup Language) input is supported for fine-grained control over pronunciation and prosody.
eSpeak NG is widely used in accessibility tools, embedded systems, and as a backend for Speech Dispatcher. Its compact size and broad language support make it the default speech synthesizer on many Linux distributions.

PARAMETERS

-v VOICE

Voice/language.
-s SPEED
Words per minute.
-f FILE
Read from file.
-w FILE
Write WAV file.
-p PITCH
Pitch adjustment.
--voices
List voices.
-q
Quiet (no sound).

CAVEATS

Voice quality varies. Robotic sound. Resource usage moderate.

HISTORY

speak-ng is part of eSpeak NG, a fork of eSpeak providing speech synthesis in many languages.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community