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.
This would be a lot nicer once cellular/satellite web becomes more widespread. A lot of what I would like to listen to/hear about is news-type sites, including of course slashdot. A pre-downloaded site wouldn't be overly up-to-date, so for non-specific one would still be better off with the radio.
With a live connection to the internet for news downloads (news should be text only... not too much bandwidth needed), and a decent sounding voice agent, this would be a lot more interesting and useful.
If piped through the car speakers, it also wouldn't be much more distracting than having the radio on to the news, unless you're trying to claim a first-post on slashdot while driving.