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. > > I instantiate the interface like so and call ShowEvents > > import comtypes.client > tts = comtypes.client.CreateObject('SAPI.SPVoice') > advise = comtypes.client.ShowEvents(tts) > > The ShowEvents call gives me the following list: > > # event found: _ISpeechVoiceEvents_StartStream > # event found: _ISpeechVoiceEvents_EndStream > # event found: _ISpeechVoiceEvents_VoiceChange > # event found: _ISpeechVoiceEvents_Bookmark > # event found: _ISpeechVoiceEvents_Word > # event found: _ISpeechVoiceEvents_Sentence > # event found: _ISpeechVoiceEvents_Phoneme > # event found: _ISpeechVoiceEvents_Viseme > # event found: _ISpeechVoiceEvents_AudioLevel > # event found: _ISpeechVoiceEvents_EnginePrivate > > When I invoke the speak() method on the tts object, I believe I should > see some of these events (word, sentence, etc.) once I enter a message > loop. However, I see nothing printed: > > tts.speak('The quick brown fox jumps over the lazy dog.') > comtypes.client.PumpEvents(10) > > I also tried passing my own class with callback methods named > _ISpeechVoiceEvents_StartStream and so forth to GetEvents, but still, > none of the callbacks get invoked.
Has this worked in other versions of comtypes, or did you try for the first time? -- Thanks, Thomas ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ comtypes-users mailing list comtypes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/comtypes-users