Jimmy wrote:hi,
- Code: Select all Expand view RUN
oSpVoice:EventInterests := SVEAllEvents + SVEAudioLevel
but how to get Event to call Function like in MSDN Sample ?
https://learn.microsoft.com/en-us/previous-versions/windows/desktop/ms723593(v=vs.85)
I am reading and reading about how to know that the "Word" event has happened, just for now I am interested in the phoneme or word
applying
- Code: Select all Expand view RUN
- oNarrator := CreateObject( "Sapi.SPVoice" , "WithEvents" )
oNarrator:EventInterests := SVEPhoneme
oNarrator:Speak( Main.RichEdit_1.VALUE, SVSFlagsAsync)
While ..
...
end
When sending the text to the TTS engine it should know if that event happened but I can't find a way to know yet since there is no real example of how it works.