![]() |
how to limit commands recognized in IE? |
Post Reply ![]() |
Author | |
peterweinstein ![]() Member ![]() ![]() Joined: 04/Feb/2010 Location: Michigan Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() Posted: 04/Feb/2010 at 4:27pm |
Hi, I'm a newbie to Windows speech recognition but an experienced programmer. I have developed a web application that runs in Internet Explorer, with commands triggered by speech recognition. The problem is that too many commands are recognized. I need to limit speech recognition to a small set of commands, in other words, I need to define a grammar. Ideally, my grammar will have effect only on my browser windows. But if it affects everything in Internet Explorer, that is also satisfactory. In fact, I would be pleased even if my grammar affects all current speech recognition system wide. My question is: what would be the easiest, most effective way to define such a grammar? My laptop runs Windows Vista so I would like to start there. My web application uses Adobe Flex if that is relevant. Thank you very much for your help, Peter |
|
![]() |
|
mmarkoe_admin ![]() Admin Group ![]() ![]() Joined: 16/Jul/2008 Status: Offline Points: 331 |
![]() ![]() ![]() ![]() ![]() |
Do a Google Search for SAPI. There are different versions. I believe when you figure out which one meets your needs, you can download it for free from Microsoft.
Marty |
|
![]() |
|
peterweinstein ![]() Member ![]() ![]() Joined: 04/Feb/2010 Location: Michigan Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
Thanks for the suggestion Marty. I did learn that the Windows SDK for Vista includes SAPI. My question now is how to activate the grammar so that the default speech recognition engine, or the engine that Internet Explorer is using, is constrained by the grammar. Inch by inch ;-) Peter |
|
![]() |
|
mmarkoe_admin ![]() Admin Group ![]() ![]() Joined: 16/Jul/2008 Status: Offline Points: 331 |
![]() ![]() ![]() ![]() ![]() |
When creating speech macros you can designate the application to use it in. As in:
<speechMacros>
<command> <appIsInForeground processName ="iexplore.exe"/> I would assume if you read the documentation and network with other speech API developers it should not be a problem to designate the grammar for Internet Explorer.
Marty
|
|
![]() |
|
peterweinstein ![]() Member ![]() ![]() Joined: 04/Feb/2010 Location: Michigan Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
Thanks again, Marty, I appreciate your attention.
I would like to understand your comment about speech macros. Are you saying that I can use speech macros to designate the grammar for Internet Explorer? Or are you saying that since speech macros have this ability, then you believe I will find a similar ability that I can express in, for example, a Visual Basic application? I'm still trying to figure out my approach, for example, at the moment I'm working through an example using Visual Basic. Thanks, Peter |
|
![]() |
|
mmarkoe_admin ![]() Admin Group ![]() ![]() Joined: 16/Jul/2008 Status: Offline Points: 331 |
![]() ![]() ![]() ![]() ![]() |
Yes, I'm surmising you can designate the application to have the vocabulary active within.
Marty
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |