Making speech-dispatcher python API support asynchronous socket communication

Tomas Cerha cerha at brailcom.org
Mon Jun 23 01:45:59 EDT 2008


Hemant Goyal wrote:
> Hmmm, would this mean that if I got a WORD_SPOKEN event notification
> then the callback to be executed for this event will be executed
> immediately?

Well, technically not really, but practically for the purpose of
updating the user interface it can be considered immediate.

> Could it be possible that such event notifications become queued
> and get executed much after the word has been spoken ? (Developers in
> the OLPC community would be very interested in providing a karaoke style
> hightlight effect during speech synthesis in their gtk activities).

The callbacks are used in Orca for a very similar thing -- the cursor is
moved along the screen according to speech progress.  The movement is,
however, currently only implemented sentence by sentence, so I can't say
if it's going to work word by word.  Anyway, I beleive it should.

Best regards, Tomas.



More information about the Devel mailing list