From: Thomas H. <th...@ct...> - 2009-10-02 21:06:13
|
>>> Peter Parente schrieb: >>>> Hi, >>>> >>>> I'm trying to use the SAPI5 SPVoice interface through comtypes, but I >>>> don't seem to be getting any events. >> This is my first attempt. If older versions are available, I can try >> them to see if any work. >> >> Pete >> > > I tried with comtypes-0.6.1 and 0.5.3 on both Python 2.5.2 and 2.6.2. > I get no output about events from ShowEvents in either case while in > the PumpEvents loop. > > To make sure SAPI is set to fire events (which MSDN says it is by > default, but you never know), I also tried setting property > tts.EventInterests to SVEAllEvents. Still, no luck. > > As a side note, I do get events when accessing SAPI5 using the > win32com package. Wrapping the SAPI.SpVoice instance with WithEvents > works as expected. Ok, at least this confirms that it SHOULD work. I'll try to find the problem but it may take a while. -- Thanks, Thomas |