在 SAPI 5.3 中禁用主语音识别
我正在编写一个程序,它可以简单地理解基本关键字,例如“左”或“右”。 它工作得很好,但是为了执行该程序,首先我必须启动 Windows 语音识别。当我的程序运行时,这个“Windows 语音识别”也在处理命令,这有时会关闭我的程序或打开文件夹。 我想要做的是禁用“Windows 语音识别”,但仍然能够正确启动我的程序。 我的代码基于本教程: http://msdn.microsoft.com/en -us/vstudio/video/Cc482921 代码:http://download.microsoft.com/download/b/0/1/b01ceff1-5ba9-41e2-ab4f-8b8f4c2f7467/SampleCoding-NativeCoding-ASR2.zip
另外,有吗如何在不支持语音识别的 Windows 版本(例如 Windows XP 或非英语 Windows 7)上运行我的程序?
I'm coding a program which simply understands basic keywords such as 'left' or 'right'.
It works great, however in order to execute the program, first, i must start Windows Speech Recognition. While my program is running, this 'Windows Speech Recognition' is also processing the commands, and this sometimes shut my program or open a folder.
What i want to do is disable 'Windows Speech Recognition' and still be able to start my program properly.
My code is based on this tutorial: http://msdn.microsoft.com/en-us/vstudio/video/Cc482921
Code: http://download.microsoft.com/download/b/0/1/b01ceff1-5ba9-41e2-ab4f-8b8f4c2f7467/SampleCoding-NativeCoding-ASR2.zip
Also, is there a way to work my program on a Windows editions(such as Windows XP or non-English Windows 7) which does not support speech recognition?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您只希望应用程序响应,则需要使用 inproc 而不是共享识别器。 http://msdn.microsoft.com/en -us/library/ms717071(v=VS.85).aspx 可能会给您一些指导。
Windows XP 平板电脑版本包含一个识别器。 Office 2003 包含许多 XP 用户已安装的识别器。我认为 XP 的后来更新包括了识别器,但我不确定。我试图在 https://stackoverflow.com/a/2998963/90236 中概述我所知道的平台和识别器并在 https://stackoverflow.com/a/5861145/90236
You need to use an inproc instead of a shared recognizer if you only want your application to respond. http://msdn.microsoft.com/en-us/library/ms717071(v=VS.85).aspx may give you some guidance.
Windows XP Tablet edition included a recognizer. Office 2003 included a recognizer that many XP users have installed. I think later updates to XP included a recognizer, but I don't know for sure. I tried to outline the platforms and recognizers as I knew it in https://stackoverflow.com/a/2998963/90236 and in https://stackoverflow.com/a/5861145/90236