From: Thomas Morgan Date: 2008-07-01T00:30:26+09:00 Subject: Re: Win32OLE and SAPI5 voice recognition problem Kyle Schmitt wrote: > Err, from what I see, I don't even think that's a ruby library, it > kindof looks like straight win32ole stuff. > I've played with this before to use sapi for TTS (opposite direction > of what you're doing). The way to really get into it is to dig > through the microsoft devnet docs for it. All the usable examples > will be in C/C++, and there's even some useful stuff in vb, but I > always found it easier to follow their c docs. > > http://msdn.microsoft.com/en-us/library/ms723627(VS.85).aspx I'm not sure there isn't something a bit ruby-specific in here somewhere though. I've been mostly looking at perl and python examples, and none of them specify an interface when setting up to receive events. Maybe I'm just doing ruby win32ole wrong somehow. The only C example so far that I've even been able to figure out how it's receiving the events is the "talkback" one, which appears to be using polling instead of setting up event callbacks. And while that could probably be made to work, callbacks seem better. -Morgan. -- Posted via http://www.ruby-forum.com/.