Information générale
Catégorie:
Contrôles ActiveX en VFP
Titre:
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.......
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement