dotmana.com

Ce site n'est pas le site officiel.
C'est un blog automatisé qui réplique les articles automatiquement

Ubuntu: talking clock every hours

Tuesday 12 February 2013 at 17:15

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

Source: http://www.dotmana.com/weblog/2013/02/ubuntu-talking-clock-every-hours/