I frequently try to emulate features of other OSs in Linux. In this case I have made an hourly announcement of the time, a la Mac OSX, using this script and a simple cron job:
date "+ it's%l oclock" | festival --tts
(I already edited festival's configuration file to use ALSA [which I have set to use PulseAudio])
It has one bug, however. For 12:00 it says "it's one-two o'clock", likewise for 10 and 11. Is there an argument for festival to make it pronounce numbers? is there a different argument for date that spells the output?
I'm using Ubuntu Hardy. With festival version 1.96:beta July 2004.
Thanks for the help.