Hi
I am trying to start with the simplest code for speech recognition,
so later I can start improving it and making it more useful.
I am trying this code:
$RecoContext=ObjCreate("SAPI.SpSharedRecoContext")
$SinkObject=ObjEvent($RecoContext,"MYEvent_")
$Grammar = $RecoContext.CreateGrammar(1)
$Grammar.DictationLoad
$Grammar.DictationSetState(1)
sleep(5000)
$Grammar.DictationSetState(0)
Func MYEvent_Recognition($StreamNumber,$StreamPosition,$RecognitionType,$Result)
MsgBox(0