Linux/Ubuntu: Speaking clock with online TTS

As a followup of my previous article:

Ubuntu: talking clock every hours

4 years after the previous article, I still need this tool, but I wanted a more “natural” TTS.

So I’m using Voxygen, a natural TTS provider (very good for French), retrieving the generated voice with wget and the following command:

wget --quiet --no-check-certificate -O /tmp/clock_`date +\%-1H`.mp3 "https://www.voxygen.fr/sites/all/modules/voxygen_voices/assets/proxy/index.php?method=redirect&text=il est exactement `date +\%-1H` heures.&voice=Loic"

Here is the script to run every hours:

if [ ! -e /tmp/clock_`date +\%-1H`.mp3 ]; then wget --quiet --no-check-certificate -O /tmp/clock_`date +\%-1H`.mp3 "https://www.voxygen.fr/sites/all/modules/voxygen_voices/assets/proxy/index.php?method=redirect&text=il est exactement `date +\%-1H` heures.&voice=Loic"; fi ; mpg321 /tmp/clock_`date +\%-1H`.mp3 --gain 200

We will be using gnome schedule taks:

screenshot-from-2017-01-05-100935

One thought on “Linux/Ubuntu: Speaking clock with online TTS

  1. Pingback: Ubuntu: talking clock every hours | DotMana

Leave a Reply

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