Having recently included this in a slightly different form in Obedient Pup I found that I really missed it when I returned to using my other pups. It in fact uses YTinstant and is pretty simple to set up.
1. Install the browser extension "Select and Speak 0.2.1" and configure it as shown below, ensuring that you tick the boxes at the bottom.
2. Install the attached xdotool pet. (xdotool-2.20110530.1-3)
3. Create the following directory /root/noob/files and extract the attached script and icon into the files directory.
4. Drag the ytinstant script onto your desktop and assign the icon to it. Edit the text as shown in the screenshot.
5. If you are using JWM add the following line of code to the hidden file jwmrc-personal.
Code: Select all
<Key keycode="115">exec:/root/noob/files/ytinstant.sh</Key>
6. Restart X.
Testing:
Voice search - press the Windows key and when invited to speak try "London Beat 9 a.m." or "Magic Bus Live at Leeds". N/B You must close the tab before making a second search.
TTS - Select some text in your browser, then right click it and pick "Speak text". (This gives the same quality TTS as in Obedient Pup).