Tuesday, September 14, 2010

Dhammapada 2010

I'm not sure if this is kosher or not... I've been working on a modified version of display-dhammapada, and am now able to convince my computer to speak a verse of the dhammapada to me on log-in:

display-dhamma -dhp bn^verse^sv | espeak

This generates a random verse from the dhammapada using the Buddharakkhita translation, then pipes it through espeak, a voice synthesizer for linux. Have a listen:

Dhp. Verse 1



Modifying the script using `seq 423` and the espeak -w $i.wav option, it took about ten minutes to create 423 mp3 files, one for each verse (most of the time was spent figuring out how... the computer did it in about 30 seconds). If anyone is interested in a copy, please let me know.