I found a couple of helpful scripts for text to speech.
My favourite was via google... they process it on their servers, and send you the mp3.
However, the length is limited to 100 characters.
I created this shell script to take a string of any length, divide it up per word, make strings of less than 100 characters, then play them all automatically.
Hopefully someone finds this useful
(requires program mpg123... feel free to replace this line in the script with something else that takes a URL input)
I put the script on my site, so I can edit it all in one place,
Get is here:
http://danfountain.com/2013/03/raspberr ... to-speech/
Usage:
save as a shell script, eg: Speech.sh
set permissions:
Code: Select all
sudo chmod -x Speech.shCode: Select all
./Speech.sh What is this great task for which I, Deep Thought, the second greatest computer in the Universe of Time and Space have been called into existence?
Let me know if you do anything nice with it.
Enjoy,
Dan