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 wordJimmy wrote:hi,but how to get Event to call Function like in MSDN Sample ?Code: Select all | Expand
oSpVoice:EventInterests := SVEAllEvents + SVEAudioLevel
https://learn.microsoft.com/en-us/previ ... 3(v=vs.85)
applying
Code: Select all | Expand
oNarrator := CreateObject( "Sapi.SPVoice" , "WithEvents" )
oNarrator:EventInterests := SVEPhoneme
oNarrator:Speak( Main.RichEdit_1.VALUE, SVSFlagsAsync)
While ..
...
end