General information
Category:
ActiveX controls in VFP
Title:
Help wanted on Speech Recognition
Hi All
I am trying to use the MSAGENT for activating certain command within my VFP5 application. The only input I need is the character set 1 to 9. I have no problem activating the specified agent and getting it to speak. What I can't seem to master is how to get it to listen and respond to what it hears. Any sample code would be gratefully received. I have documented what I have so far (Not much I know!)
MyAgent = Thisform.Agent
MyAgent.Characters.Load("Genie","C:\Windows\MsAgent\Chars\Genie.acs")
* Set this to .f. if you don't want the sound effects
MyAgent.Characters("Genie").SoundEffectsOn = .t.
MyAgent.Characters("Genie").Show()
nLeft = Thisform.Left+Thisform.Agent.Left
nTop = Thisform.Top+Thisform.Agent.Top
MyAgent.Characters("Genie").MoveTo(nLeft,nTop)
* Speak Button
MyAgent = Thisform.Agent
MyAgent.Characters("Genie").Play("Greet")
MyAgent.Characters("Genie").Speak( ;
"Spoken Text")
* Listing Code ?????????????????
Kind Regards and thanks in advance
Derek.......
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only