Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help wanted on Speech Recognition
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Help wanted on Speech Recognition
Divers
Thread ID:
00436614
Message ID:
00436614
Vues:
74
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
Fil
Voir

Click here to load this message in the networking platform