Here is what i want to do:
I want to put/run Orca as an idle process in background after booting into Ubuntu. (No problem there so far.)
Now when I open up a text file or website in my [web]browser; I want to be able, to highlight text and use a keyboard-shortcut in order to invoke Orca process [see step 1], to read the selected text back to me.
My problem is, that Orca, once initialized as a running process permanently reads back everything, from mouse-over actions of buttons, to system related actions etc.. and orca-preferences doesn't come with options, to reduce and suppress this. Orca might not be the right application at all for this and a common speech-synthesis application might be even better.
- If someone knows how to make it work that way, please help.
- An alternative speech-synthesis "read back" option/function, like Apple offers in OS X would even be better, since there one can simply "selected text", that is invoked with Ctrl+# shortcut, or simply use
say
, or for text filessay -f ~/input.txt -o ~/output.aiff
-command to have text red back instantly!
I found the answer here, in this comment, which does the trick in combination with festival:
(Although, these "free" speech synthesis are not even close to be as good as they ought to be!!)
wizo chocs says: March 2, 2012 at 12:49 pm
create this script xtalk
chmod 755 xtalk
Would Festival do what you want? http://www.ghacks.net/2010/10/09/linux-text-to-speech-with-festival/
You also have http://clickspeak.clcworld.net/index.html or http://www.firevox.clcworld.net/installation_linux.html wich is a plugin for firefox
Based on v2r's answer I made this script:
This script will stop reading when you push the key combo a second time while it is reading.
I installed
and the some mbrola voices :
I made a separate script and key combo for every language. like
Pause
for English andShift + Pause
for German.I use Ubuntu 18.04
For Firefox I would recommend the Talkie extension. It reads very fine and automatically detects languages.