Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Speech Recognition (SAPI 5.1) via VB

Status
Not open for further replies.

t2134mf

Programmer
Nov 14, 2002
5
US
Am trying to execute an Access Macro using a voice command. I don't want File, or Save, I want a custom voice command to run a specific macro.

I found an excellent article at that has me just about there. My problem is where to place the 'match' part of the VB. I have the grammar active, but I don't know where to place the vb to see if a voice command matches one of the grammar list items.

The code I'm talking about from the file is...
strText = Result.PhraseInfo.GetText(0, -1, True) ' what they said
strNumber = Result.PhraseInfo.Properties(0).Value ' which property in the rule was matched

does it go in the Form, in a module. I'm used to running code OnOpen or OnClick, where do you run code 24/7 as you would need to with speech recognition.

Sorry, new to this. Thanks for help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top