{"id":167,"date":"2015-02-08T21:00:44","date_gmt":"2015-02-09T03:00:44","guid":{"rendered":"http:\/\/lucasmanual.com\/blog\/?p=167"},"modified":"2015-02-13T22:36:26","modified_gmt":"2015-02-14T04:36:26","slug":"alt-speak-alts-how-to-enable-talk-to-speach","status":"publish","type":"post","link":"https:\/\/lucasmanual.com\/blog\/alt-speak-alts-how-to-enable-talk-to-speach\/","title":{"rendered":"Alt + Speak (Alt+S) = How to enable Text-To-Speech"},"content":{"rendered":"<p>*Install festival. This will speak the text you select.<br \/>\n<code>apt-get install festival<\/code><\/p>\n<p>*Install xsel. This program allows you to pass what you selected into a talk.sh from your graphic interface. In my case I use gnome shell, so when you are in a email or website or reading long marketing notes and you select your text you just press alt+s and computer will speak(say) it to you.<br \/>\n*Lets install xsel.<br \/>\n<code>apt-get install xsel<\/code><\/p>\n<p>*Now create a little bash script that passes what you selected to festival<br \/>\n<code>cd \/home\/lucas<br \/>\nvi talk.sh<br \/>\n<\/code><br \/>\n*And paste these lines<br \/>\n<code>#!\/bin\/bash<br \/>\nxsel | festival --tts --pipe<br \/>\n<\/code><\/p>\n<p>*In order to being able to execute it we need to give it execute permission.<br \/>\n<code>chmod +x talk.sh<\/code><\/p>\n<p>*Now you are ready. We just need to add our talk.sh to our keyboard shortcuts. In gnome shell : Search for<br \/>\n<code>System Settings<br \/>\nthen press keyboard<br \/>\nthen press Shortcuts<br \/>\nthen press +<br \/>\n<\/code><br \/>\nAdd keyboard shortcut.<br \/>\nName: <code>TTS<\/code>    (Text To Speech)<br \/>\nCommand: <code>\/home\/lucas\/talk.sh<\/code><\/p>\n<p>*And set it for<br \/>\n<code>alt + s<\/code><\/p>\n<p>aka Alt + SPEAK!<\/p>\n<p>*You are ready to go. Select some text and press alt+s. (I have noticed that sometimes you need to press and hold s for about 1sec for it to work when there is more text selected.<\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=4uKTamXonPs\" title=\"TTS Debian Linux\">*Watch a quick video that was very helpful:<\/a><\/p>\n<p>*Some notes on the voice. The default festival voice is the most versatile when it comes to reading. I have tried other voices but they are incomplete when it comes to some words. I was surprised that this can read almost every word. <a href=\"http:\/\/www.cs.cmu.edu\/~awb\/festival_demos\/userin.html\">You can try other languages here<\/a>. While I read that Japanese American might be a good replacement. The default festival voice was very easy to get used to. In 1 day I catch up on all the marketing notes. So have the computer read to you and get back to business.<\/p>\n<p>While you are still here help me request this talk.sh being included in all Debian installations by default and keyboard shortcut set to alt+s (alt+speak)<\/p>\n<p>*Enjoy! text-to-speech on Debian Linux<\/p>\n","protected":false},"excerpt":{"rendered":"<p>*Install festival. This will speak the text you select. apt-get install festival *Install xsel. This program allows you to pass what you selected into a talk.sh from your graphic interface. In my case I use gnome shell, so when you are in a email or website or reading long marketing notes and you select your&hellip; <a class=\"more-link\" href=\"https:\/\/lucasmanual.com\/blog\/alt-speak-alts-how-to-enable-talk-to-speach\/\">Continue reading <span class=\"screen-reader-text\">Alt + Speak (Alt+S) = How to enable Text-To-Speech<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,3,4],"tags":[],"class_list":["post-167","post","type-post","status-publish","format-standard","hentry","category-corporate","category-debian","category-linux","entry"],"_links":{"self":[{"href":"https:\/\/lucasmanual.com\/blog\/wp-json\/wp\/v2\/posts\/167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lucasmanual.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lucasmanual.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lucasmanual.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lucasmanual.com\/blog\/wp-json\/wp\/v2\/comments?post=167"}],"version-history":[{"count":16,"href":"https:\/\/lucasmanual.com\/blog\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"predecessor-version":[{"id":201,"href":"https:\/\/lucasmanual.com\/blog\/wp-json\/wp\/v2\/posts\/167\/revisions\/201"}],"wp:attachment":[{"href":"https:\/\/lucasmanual.com\/blog\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lucasmanual.com\/blog\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lucasmanual.com\/blog\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}