Listen to Webpages While Driving
dimitril writes "Tired of sitting in your car for hours and practically doing nothing but listening to the radio or the same CD for the fifth time? You could use those hours by reading your websites with this little project. You will love those traffic jams!"
It's easier to convert the output of the speech synthesizer to mp3 and use an MP3 player for the car. That way, you don't have to dress up like the Borg to do a fast forward/reverse/skip. The code for dealing with it is also much simpler. Here's a simple 8 line Bash script that downloads a list of URLs and converts them to MP3 files (options are from memory, so double check before using it):
/card/audio$id.mp3
id=0
cat list-of-urls |
while read url; do
lynx -dump $url |
rsynth-say -l temp.pcm
bladeenc -mono -b 32 -rawfreq=8000 -rawbits=16 -rawchannels=2 temp.pcm
((id++))
done
You can run this nightly from cron. If you want better speech output, use Festival. You may want to filter the output from "lynx" through a sed script to remove redundant content.