Espeak-ng

Pramod Kumar Gupta
3 min readSep 23, 2021

What is espeak-ng ?

eSpeakNG is a compact, open-source, software speech synthesizer for Linux, Windows, and other platforms. It uses a formant synthesis method, providing many languages in a small size. Much of the programming for eSpeakNG’s language support is done using rule files with feedback from native speakers.

Let’s start exploring this tool -

To check :

espeak-ng --version

Syntax for executing this command :

espeak-ng [options] [string]

Basic example :

espeak-ng "Enter anything you want it to speak"

You can also use this way :

espeak-ng --stdin

To change voice language :

-v is used to change voice language

To check which languages supported use -

espeak-ng --voices 

For changing voice language :

espeak-ng -v -af “hello”

For changing male or female:

espeak-ng -v en+m1 “your text here “espeak-ng -v en+m2 “your text here “espeak-ng -v en+f1 “your text here “espeak-ng -v en+f2 “your text here “

To give file as input :

espeak-ng -f <text_file>

To change amplitude :

espeak-ng -a <any integer value > · Amplitude, 0 to 200, default is 100

To pause between words :

By default is 10mS

easpeak-ng  -g <integer unit > "your inpu or text"

For Pitch Adjustment :

espeak-ng -p <integer value> "Your text or input" 

Default value is 50.

For changing speed in words per minute :

espeak-ng -s <speed in integer> “your text or input”>

Deafult is 175

To write phoneme mnemonics to stdout :

espeak-ng -x “Your text “

To write phonemes mnemonics and translation trace to stdout :

espeak-ng -X “your text”

No final sentence pause at the end of the text :

espeak-ng -z “your text”

🎇 Thanks for reading .🎇

✨Keep sharing and keep learning …✨

--

--