Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help wanted on Speech Recognition
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Help wanted on Speech Recognition
Miscellaneous
Thread ID:
00436614
Message ID:
00436614
Views:
73
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
Map
View

Click here to load this message in the networking platform