Ubuntu: talking clock every hours

Update of this stuff:

Linux/Ubuntu: Speaking clock with online TTS

 

Since I work at home, time is running so fast I can really keep track of it.

So I found a convenient way to get spoken hours every hours of working time, during working week.

First, the software:

sudo apt-get install gnome-schedule festival alsa-oss

Then test from console:

echo "current time is `date +\%-1H` oclock" | aoss festival --tts

You can customize the spoken text, change %-1H with %-1L if you want 24 or 12AM/PM format.

The %-1 is to remove the leading zero (nine oclock in the morning would be 09 otherwise)

Lastly, it’s time for a cron job from Gnome-Schedule:

Command line is:

echo "current time is `date +\%-1H` oclock" | aoss festival --tts >/dev/null 2>&1

(dont forget to backslah the % character with \)

With this settings, it speaks from 8 to 22, only from Mon to We

One thought on “Ubuntu: talking clock every hours

  1. Pingback: Linux/Ubuntu: Speaking clock with online TTS | DotMana

Leave a Reply

Your email address will not be published. Required fields are marked *