Where in the code is word highlighting for text-to-speech handled?
I'm trying to set up microsoft azure with the read aloud feature. It does read the word but it's not highlighted. I'm on linux so I have my azure python script configured as a speech-dispatcher module. I understand that the module should support word highlighting, but with every module where that function actually works it is the same highlight color (blue) which I guess would indicate that the highlighting is done by the ebook viewer and not the tts-engine itself? Where in the source code does that happen? I've looked at src/calibre/gui2/tts and src/calibre/gui2/viewer but I'm not finding anything related to "highlight spoken word" (actually finding anything fast in the source code when comments are absent is difficult). Could you please lead me to the right destination I'd be very thankful.
|