1

Install eSpeak on CentOS 7

 2 years ago
source link: https://www.vultr.com/docs/install-espeak-on-centos-7
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
<?xml encoding="utf-8" ??>

ESpeak can generate text-to-speech (TTS) audio files. These can be useful for many reasons, such as creating your own Turing (Captcha) tests that are capable of speaking its challenge. This article will cover how to install eSpeak and create a simple TTS audio file in .wav format on CentOS 7.

Install eSpeak

Log in as the root user and run the following command to install eSpeak.

# yum install espeak -y

Generate your first TTS audio file

Test eSpeak by asking it to sound out the letters y j w c t j while writing the output as a .wav file named espeak-talk.wav in the /tmp/ directory. Next, we tell it we want a word gap of 60, the pause between words. We also tell it we want a pitch of 70 and a readout speed of 100.

# espeak "y j w c t j" -w /tmp/espeak-talk.wav -g 60  -p 70 -s 100 -v en-uk

You will now have a file named espeak-talk.wav located in /tmp/.

Want to contribute?

You could earn up to $600 by adding new articles


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK