Atlantic.Net Blog

Install eSpeak on Ubuntu 20.04

eSpeak is free and open-source software that can be used to convert text to voice in English and other languages. It can be installed on Windows and Linux-based operating systems. eSpeak takes input from the string or files and generates an audio format file. You can play this file using any player.

Gespeaker is a graphical interface for eSpeak. It is also used to play a text file in multiple languages. You can also record a text file in WAV format for future listening.


  • Speak text from a file
  • Can be used with screen-readers and other programs in Windows
  • Ported to several platforms, including Android, Mac OSX, etc.
  • Supports multiple languages

In this tutorial, we will show you how to install eSpeak and Gespeaker on Ubuntu 20.04 desktop system.


  • A fresh Ubuntu 20.04 Desktop VPS on the Atlantic.Net Cloud Platform
  • A root password configured on your server

Step 1 – Create an Atlantic.Net Cloud Server

First, log in to your Atlantic.Net Cloud Server. Create a new server, choosing Ubuntu 20.04 as the operating system with at least 2 GB RAM. Connect to your Cloud Server via SSH and log in using the credentials highlighted at the top of the page.

Once you are logged in to your Ubuntu 20.04 server, run the following command to update your base system with the latest available packages.

apt-get update -y

Step 2 – Install eSpeak

By default, this tool is available in all major Linux distributions. You can install it by just running the following command:

apt-get install espeak -y

Once the installation is finished, verify the installed version of eSpeak with the following command:

espeak --version

You should get the following output:

eSpeak text-to-speech: 1.47.11 03.May.13 Data at: /usr/lib/x86_64-linux-gnu/espeak-data

Step 3 – Generate Audio File with eSpeak

Now, let’s speak the line “Hi Welcome to eSpeak” and record it to the file1.mp4 audio file:

espeak "Hi Welcome to eSpeak" -w file1.mp4 -g 60 -p 70 -s 100 -v en-us

You can now play the file1.mp4 using any audio player.

You can also specify the text file that you want to record in the mp4 format.

First, create a sample file named file.txt:

nano file.txt

Add the following contents:

Atlantic Cloud offers hosting solutions customized to your business needs including cloud, 
managed, dedicated, HIPAA compliant, and more.

Save and close the file when you are finished.

Next, run the following command to convert file.txt to the mp4 audio format file named file2.mp4:

espeak -f file.txt -w file2.mp4 -g 60 -p 70 -s 100 -v en-us

Step 4 – Install Gspeaker

Gespeaker is a GUI interface for eSpeak. It provides a graphical interface to manage text-to-speech features.

You can install it with the following command:

apt-get install gespeaker -y

Once the installation is completed, you can launch it from your Unity search bar. You should see the following page:

You can now type any text that you want to play inside the “Insert text to play” bar and click on the Play button to hear it.

You can also click on the Record button and save it to the audio file for future listening.


In the above guide, you learned how to install eSpeak and Gspeaker on Ubuntu 20.04. You can now easily convert any text file into an audio file. Try it today on dedicated server hosting from Atlantic.Net!

Get started with 12 months of free cloud VPS hosting

Free Tier includes:
G3.2GB Cloud VPS Server Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year