speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Making speech-dispatcher python API support asynchronous socket communic


From: Tomas Cerha
Subject: Making speech-dispatcher python API support asynchronous socket communication
Date: Fri, 20 Jun 2008 15:45:43 +0200

Hemant Goyal wrote:
> Any clues/hints ?

Hello Hemant,

I'm sorry I can't take deeper look into that right now, but at least I
will try to give some hints.  I am the author of the Speech Dispatcher
backend for the Orca screeen reader.  I was facing a similar problem
there and I solved it by passing all callbacks to the gidle thread.  All
SD communication is performed from the GUI thread, but the callbacks
don't perform any actions themselves -- they only schedule these actions
to be performed within the idle thread.  It works surprisingly well.

Just look at the code.  The important part is in the `_say_all()'
method.  It's in the Gnome SVN:

http://svn.gnome.org/svn/orca/trunk/src/orca/speechdispatcherfactory.py

Not sure whether this may help in your situation, though.

Best regards, Tomas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]