PROJET AUTOBLOG


Dotmana

source: Dotmana

⇐ retour index

Mes trouvailles du jour : 13 February 2013

mercredi 13 février 2013 à 21:00

Mes trouvailles du jour : 12 February 2013

mardi 12 février 2013 à 21:01

Ubuntu: talking clock every hours

mardi 12 février 2013 à 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

Mes trouvailles du jour : 11 February 2013

lundi 11 février 2013 à 21:00

Mes trouvailles du jour : 10 February 2013

dimanche 10 février 2013 à 21:00