speak() in python ignoring callback (for BEGIN)
hanke at brailcom.org
Mon Apr 6 17:36:44 CEST 2009
Richard Schwarting napsal(a):
> Neither of those are really good solutions, but the logic seems more
> messed up than I thought:
you might call it ,,messed up'', but it is also true that the
logic of implementation of handling of asynchronous text protocol
events in a client library is not an easy thing in principle.
I believe a separate thread is necessary.
I know of some succesful uses of the Python speechd library
where callbacks are used (Orca or an OLPC activity I believe),
but their use of callbacks might be different or might suffer
the same problem less frequently. As was said in the TODO: item,
we know about the problem.
I won't have any time now to fix it, but I'll accept any patches,
so feel free to look into it. Perhaps it is a good idea to
change the whole mechanism how the callbacks are invoked,
as long as the functionality is maintained for the client
Thanks for your input,
More information about the Speechd