LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

espeak

compact open-source speech synthesizer

TLDR

Speak text
$ espeak "[Hello world]"
copy
Speak from file
$ espeak -f [text.txt]
copy
Set voice/language
$ espeak -v [en-us] "[Hello]"
copy
Adjust speed
$ espeak -s [150] "[Hello]"
copy
Save to audio file
$ espeak -w [output.wav] "[Hello]"
copy
List available voices
$ espeak --voices
copy
Adjust pitch
$ espeak -p [50] "[Hello]"
copy

SYNOPSIS

espeak [options] [words]

DESCRIPTION

eSpeak is a compact, open-source text-to-speech synthesizer supporting many languages. It uses formant synthesis, producing a distinctive robotic voice but requiring minimal resources.The tool converts text to speech output through speakers or audio files. Multiple languages and voices are available with adjustable speed, pitch, and other parameters.eSpeak is useful for accessibility, automated announcements, and applications requiring speech synthesis without large voice databases.

PARAMETERS

WORDS

Text to speak.
-f FILE
Read text from file.
-v VOICE
Voice name or language.
-s SPEED
Speed in words per minute.
-p PITCH
Pitch (0-99).
-w FILE
Write output to WAV file.
--voices
List available voices.
-a AMPLITUDE
Amplitude/volume (0 to 200, default 100).
-g GAP
Word gap, in units of 10 ms.
-m
Interpret SSML markup in the input.
-x
Write phoneme mnemonics to stdout instead of speaking.
--stdout
Write WAV audio to standard output.
--help
Display help information.

INSTALL

sudo apt install espeak
copy
sudo dnf install espeak
copy
sudo apk add espeak
copy
sudo zypper install espeak
copy
brew install espeak
copy
nix profile install nixpkgs#espeak
copy

CAVEATS

Voice quality robotic compared to neural TTS. Some language support limited. Pronunciation may need tuning. SSML support is partial.

HISTORY

eSpeak was created by Jonathan Duddington and released as open source. Its formant synthesis approach prioritizes small size and multi-language support over naturalistic voice quality. Development of the original eSpeak stopped around 2015; the actively maintained fork espeak-ng is now the recommended version, and on many distributions `espeak` is a compatibility wrapper around it.

SEE ALSO

RESOURCES

Copied to clipboard
Kai