Text to Speech for your Raspberry Pi
This guide will show you how to use Text to Speech on your Raspberry Pi. Note that for this you need a speaker or some headphones and your Raspberry Pi needs to be connected to the internet. This assumes that you are already SSHed into your Raspberry Pi. If you are not, see the following: http://www.cpdforteachers.com/resources/sshing-into-your-raspberry-pi/.
1) Enter the following command:
sudo apt-get install espeak
2) Press 'y' and then press the return key to indicate you wish to continue. You should receive a stream of messages:
3) Now enter the following command, replacing 'hello' with whatever you wish to be read out. You may receive a few errors, but these can normally be safely ignored.