Espeak-ng Command in Linux

Espeak-ng Command in Linux

Espeak-ng

eSpeak NG 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 eSpeak NG language support is done using rule files with feedback from native speakers.

Lets get started

To see espeak-ng software version

espeak-ng --version

image.png

Syntex for execution commands

espeak-ng [options] [string]

Let's see some example

espeak-ng "Hello how are you?"

image.png

We can also give standard input in this command using --stdin option.

espeak-ng --stdin

image.png

To change Voice

Here, we can also change the accent of the voice in output using --voice option.

To see how many voices are there.

espeak-ng --voice

image.png

To change voice in spanish_(spain)

espeak-ng -v es "hello, how are you"

image.png

Change voice into Male or Female

espeak-ng -v en+m1 "hello, how are you"

espeak-ng -v en+m1 "hello, how are you"

image.png

File as input

we can also give a file as input in espeak-ng command using -f option.

espeak-ng -f <text_file>

Amplitude of speech

To change the amplitude of speech using -a option, we can pass the amplitude value between 0 to 200, by default value is 100.

espeak-ng -a 70 "Hey there, How are you?"

image.png

Pause between words

set pauses between words using -g option, by default is 10ms.

espeak-ng -g 2ms "Hey there, How are you?"

image.png

Set pitch volume

by default pitch is 50, but we can also change this using -p option.

espeak-ng -p 70 "Hey there, How are you?"

image.png

Change speed

we can change speed of words per minute using -s option. by default is 175.

espeak-ng -s 50 "Hey there, How are you?"

image.png

Write phoneme mnemonics as stdout

espeak-ng -x "Hey there, How are you?"

image.png

Write phonemes mnemonics and tranlation trace to stdout.

espeak-ng -X "Hey there, How are you?"

image.png


That’s All, Keep Learning.

! THANK YOU For Reading !

Did you find this article valuable?

Support Shashi Kant by becoming a sponsor. Any amount is appreciated!