{"id":2218,"date":"2017-01-05T10:07:14","date_gmt":"2017-01-05T09:07:14","guid":{"rendered":"http:\/\/www.dotmana.com\/weblog\/?p=2218"},"modified":"2017-01-05T10:13:01","modified_gmt":"2017-01-05T09:13:01","slug":"linuxubuntu-speaking-clock-with-online-tts","status":"publish","type":"post","link":"https:\/\/www.dotmana.com\/weblog\/2017\/01\/linuxubuntu-speaking-clock-with-online-tts\/","title":{"rendered":"Linux\/Ubuntu: Speaking clock with online TTS"},"content":{"rendered":"<p>As a followup of my previous article:<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"5cKORJek6J\"><p><a href=\"http:\/\/www.dotmana.com\/weblog\/2013\/02\/ubuntu-talking-clock-every-hours\/\">Ubuntu: talking clock every hours<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"\u201cUbuntu: talking clock every hours\u201d \u2014 DotMana\" src=\"http:\/\/www.dotmana.com\/weblog\/2013\/02\/ubuntu-talking-clock-every-hours\/embed\/#?secret=XbT8ycvXgL#?secret=5cKORJek6J\" data-secret=\"5cKORJek6J\" width=\"584\" height=\"329\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>4 years after the previous article, I still need this tool, but I wanted a more &#8220;natural&#8221; TTS.<\/p>\n<p>So I&#8217;m using <a href=\"https:\/\/www.voxygen.fr\/\">Voxygen<\/a>, a natural TTS provider (very good for French), retrieving the generated voice with wget and the following command:<\/p>\n<pre>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&amp;text=il est exactement `date +\\%-1H` heures.&amp;voice=Loic\"<\/pre>\n<p>Here is the script to run every hours:<\/p>\n<pre>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&amp;text=il est exactement `date +\\%-1H` heures.&amp;voice=Loic\"; fi ; mpg321 \/tmp\/clock_`date +\\%-1H`.mp3 --gain 200<\/pre>\n<p>We will be using gnome schedule taks:<\/p>\n<p><a href=\"http:\/\/www.dotmana.com\/weblog\/2017\/01\/linuxubuntu-speaking-clock-with-online-tts\/screenshot-from-2017-01-05-100935\/\" rel=\"attachment wp-att-2222\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2222\" src=\"http:\/\/www.dotmana.com\/weblog\/wp-content\/uploads\/Screenshot-from-2017-01-05-100935.png\" alt=\"screenshot-from-2017-01-05-100935\" width=\"905\" height=\"545\" srcset=\"https:\/\/www.dotmana.com\/weblog\/wp-content\/uploads\/Screenshot-from-2017-01-05-100935.png 905w, https:\/\/www.dotmana.com\/weblog\/wp-content\/uploads\/Screenshot-from-2017-01-05-100935-300x181.png 300w, https:\/\/www.dotmana.com\/weblog\/wp-content\/uploads\/Screenshot-from-2017-01-05-100935-768x462.png 768w, https:\/\/www.dotmana.com\/weblog\/wp-content\/uploads\/Screenshot-from-2017-01-05-100935-498x300.png 498w\" sizes=\"auto, (max-width: 905px) 100vw, 905px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8220;natural&#8221; TTS. So I&#8217;m using Voxygen, a natural TTS provider (very good &hellip; <a href=\"https:\/\/www.dotmana.com\/weblog\/2017\/01\/linuxubuntu-speaking-clock-with-online-tts\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-2218","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/2218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/comments?post=2218"}],"version-history":[{"count":5,"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/2218\/revisions"}],"predecessor-version":[{"id":2225,"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/2218\/revisions\/2225"}],"wp:attachment":[{"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/media?parent=2218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/categories?post=2218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/tags?post=2218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}