The install script for Raspivoice (on Ubuntu or Raspberry Pi)
Switch branches/tags
Nothing to show
Clone or download
Latest commit a63d928 Mar 12, 2016
Failed to load latest commit information.

raspivoice_install (for Ubuntu or Raspberry Pi)

Make sure GIT is installed by doing this:

sudo apt-get install git

#####Then clone this repository using this command:

git clone

The actual install script for Raspivoice is called But before you can run it, you have must make it executable using the following command:

cd raspivoice_install

chmod 755

Then run it as root using the following commands:


Install eSpeak

sudo apt-get install espeak

Install the WAV files used by Raspivoice (This can take about half an hour)

cd /usr/local

sudo git clone

And if you have already dowloaded the WAV files and only want to update, just do this:

cd /usr/local/raspi-wav/

sudo git fetch

Last thing to do would be ensure the sound is directed to the right channel

The command to do this

amixer cset numid=3 n

Where n is the required interface : 0=auto, 1=analog, 2=hdmi. To force the Raspberry Pi to use the analog output (earphone jack) would be:

amixer cset numid=3 1

And make it nice and loud:

amixer set PCM -- -0

If all goes well, the Raspivoice will now be install and ready for use. The raspivoice binaries itself will reside in the $HOME/bin folder

To try it, make sure audio is enabled for audio jack output (on Rpi) or USB Analog audio (on Ubuntu) and type:

raspivoice hello world raspivoice thatsall