On Tue, 23 Aug 2005, Jouke Visser wrote:
> I've been trying to write a script that captures the events from SAPI5
> (Microsoft's Speech API 5) COM objects. I've tried this for the
> SAPI.SpVoice (Text To Speech) and SAPI.SpSharedRecoContext (Speech
> Recognition) objects, and my eventhandler never gets called.
>
> I'm pretty sure the code is OK (I've attached a sample script), so
> I think it must be the Win32::OLE module that of course has only
> Alpha support for events. I've seen a similar posting in
> perl-win32-users a rather long time ago that didn't get any
> response, so I'm trying again.
>
> Is there anyone who knows a solution to this?

Sorry, no idea (and no time to dig into it now either).  I remember that
using events with MS Agent objects didn't work correctly with Win32::OLE,
but didn't ever spend the time to figure that one out either.  I believe
those objects needed to be embedded in a real GUI application to fire
events correctly or something.

It is possible that the SAPI stuff has the same problem.  Or maybe the
interface for the events is not correct.  Did you try to leave out the
interface spec and let Win32::OLE determine the default source for the
object?

Cheers,
-Jan


_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to