Abstract
- eSpeak helps you to take heed to your terminal instructions as a substitute of simply studying them.
- You may set up eSpeak via your default package deal supervisor reminiscent of uisng APT, DNF, or YUM.
- With varied eSpeak choices, you’ll be able to regulate output speech, enhance or lower speech price, and even select completely different languages and accents.
Need to take heed to log information, command output, file enter, or something you sort within the terminal? The eSpeak program helps you to do exactly that by offering a voice to your Linux system with quite a few sensible functions.
What Is eSpeak?
eSpeak is a command-line software that allows you to convert textual content to speech. It really works by taking textual content enter and changing it into phonemes, that are then synthesized into speech utilizing formant synthesis. This technique fashions the human vocal tract to supply speech sounds, leading to a transparent however considerably mechanical voice.

Associated
How to Read Text Messages Out Loud With Android
Need your Android cellphone to learn your texts out loud?
Additionally, eSpeak can converse in lots of languages (over 100 languages and accents), so you’ll be able to even learn the way phrases sound in French or Spanish. You too can tweak the output by adjusting settings just like the voice, velocity, and pitch to get the sound excellent.
Find out how to Set up eSpeak
espeak is well out there by way of virtually any default package deal supervisor you may be utilizing. For Debian-based methods (Ubuntu, Mint), use APT:
sudo apt set up espeak
For Fedora or CentOS methods, use this:
sudo dnf set up espeak
And for Arch customers, it is:
sudo pacman -S espeak
After set up, confirm it by typing espeak –version in your terminal and urgent Enter. If put in, it should show the model quantity and the situation of the eSpeak package deal.
Utilizing eSpeak to Learn the Textual content Aloud
Utilizing espeak is so simple as typing a command. Once you run eSpeak within the terminal, you present it with some textual content, and it’ll converse that textual content out loud via your pc’s audio system.
For instance, sort espeak adopted by the textual content in quotes with none further choices like this:
espeak "Hi there and Welcome to this Linux information."
Inside seconds, your terminal will learn the message aloud. You may even pipe text from files or other commands instantly into eSpeak. It is a enjoyable and sensible approach to evaluate logs, alerts, and even code feedback with out having to pressure your eyes.
As an illustration, if you wish to take heed to the contents of a file, you might do:
cat yourfile.txt | espeak
Or, you should utilize this:
espeak -f text_file.txt
Not solely textual content information, you can too pipe the output of every other instructions to eSpeak. For instance, to listen to the present date and time, run:
date | espeak
This pipes the output of the date to espeak, which reads it aloud.
Exploring eSpeak Choices
eSpeak additionally comes with useful options like a wide range of voices (male, feminine, or results like a whisper), and the choice to save lots of speech as a WAV file for later use. You may customise it with command-line choices and fine-tune your expertise. For instance, you’ll be able to regulate speech, velocity up or decelerate the voice, make it greater or decrease, change to completely different accents, and even mix a number of choices.
To view all of the out there choices eSpeak helps, run this:
espeak -help
And should you’re curious concerning the completely different voices out there, merely run:
espeak --voices
Now from the record you’ll be able to choose your most popular voice and use it with the -v possibility adopted by the voice identify. For instance, for a British English voice, run:
espeak -v en-gb "Hi there, in a British accent!"
The default talking velocity is about to 175 WPM. You may regulate the talking velocity with the -s possibility, adopted by phrases per minute. For instance, to decelerate the velocity, use this:
espeak -s 120 "Talking slower now."
Equally, to hurry up, use a worth greater than 175. However what if you wish to regulate the pitch? Use the -p possibility. The default pitch is about to 50 with a variety from 0 to 99. To extend pitch, use a worth greater than 50, and to lower pitch, use a worth lower than 50.
Let’s enhance pitch:
espeak -p 70 "Increased pitch."
To lower pitch:
espeak -p 30 "Decrease pitch."
To show textual content right into a WAV or MP3 file for later playback, use the -w possibility:
espeak "Backup accomplished efficiently" -w alert.wav
You too can mix a number of choices and let your terminal converse to you with personalized settings. As an illustration, to get a British voice at a slower velocity with greater pitch, use the -v, -s, and -p choices altogether:
espeak -v en-gb -s 150 -p 60 "Combining voice, velocity, and pitch choices."
You may tweak these settings relying on what you are doing—every adjustment brings a brand new taste to your auditory expertise.
Options to eSpeak
Whereas efficient, espeak is not the one text-to-speech possibility. Instruments like competition, say, gTTS, and flite present text-to-speech methods with a variety of voices. Attempt utilizing competition if you would like full customization and superior management over voices past what eSpeak affords. You may simply set up these options together with your default package deal supervisor.
say (Speech Dispatcher) is a system-wide service managing speech output, working with engines like espeak and competition. It allows constant speech synthesis throughout functions and engine switching.
I’ve experimented with these options, they usually’re nice for particular duties. However for on a regular basis use, I all the time come again to eSpeak as a result of it is light-weight and dependable.
Whether or not you are studying information, practising languages, or simply having enjoyable, this little software can add an entire new dimension to your workflow. Additional, should you take pleasure in utilizing the terminal, you can too do different issues proper from the terminal, like playing Spotify or browsing the internet.