Click here to Skip to main content
15,896,207 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do we simulate key board functions using SAPI.

I mean to say, if I say "F1", then Help menu should pop out.

Can anyone please explain the flow.

Thanks
Posted

1 solution

This requires several step:
1. Set up and train the speech recog engine
2. Introduce a keyword, so that the following word is recognized as a key stroke; for instance "Key stroke F1". This avoids unwanted windows opening ( "In the last F1 race, Michael Schumacher...")
3. Using the SAPI, set up an event that triggers a callback function when "Key Stroke" is recognized.
4. Interpret the next token ("F1" in the example) using a mapping table token<->key code
5. Emulate the keystroke using an API function, for instance: SendKeys[^]
 
Share this answer
 
Comments
nitin_roy_scorpion 6-Sep-11 13:34pm    
Thanks Rage, But can you please explain points 2 , 3, 4 and 5 in more detail or point me to correct references, as I am relatively new to Speech Recongnition :).
As of now I have trained my SR engine. I am using SDK 5.1.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900