Discussion:
SpVoice SetInterest in C#
(too old to reply)
Craig Miller
2009-03-02 09:46:08 UTC
Permalink
I'm writing a phone menu system which uses Microsoft SAPI to speak text files
but it's not firing any of its events. I know I need to call SetInterest on
the SpVoice object but what parameters do I pass in?

In C++ you have SPFEI and SPEVENTENUM but what do I use in C#? I tried
passing in Convert.ToUInt64(2) for SPEI_END_INPUT_STREAM and I get an error
saying that the value isn't in the expected range.
Craig Miller
2009-03-02 10:58:24 UTC
Permalink
Okay, after a bit of mucking about I've realised that I can just set the
EventInterests property to SpeechVoiceEvents.SVEEndInputStream but the event
still isn't firing! Is there something else I need to do?

Loading...