【问题标题】:using Visual Studio 2010 and speech recognition on windows 7?在 Windows 7 上使用 Visual Studio 2010 和语音识别?
【发布时间】:2023-04-29 11:26:01
【问题描述】:
我从未使用过语音识别 (SR),但我听说 Windows 7 的内置 SR 功能还不错。我认为这可能是 Visual Studio 的真正生产力助推器,因此我可以减少鼠标的使用(请不要使用 Emacs cmets ;-)。我不打算不使用键盘输入实际代码——但也许这也可以?
有人有在 Windows 7 上将 SR 与 Visual Studio 结合使用的经验吗?如果有,有什么使用技巧吗?
【问题讨论】:
标签:
visual-studio-2010
speech-recognition
【解决方案1】:
Windows 语音识别使用 UI 自动化(或当 UI 自动化不可用时使用 MSAA)与应用程序交互。不幸的是,Visual Studio 2008 及更低版本的 MSAA 实现非常奇怪,导致无法将 Windows Speech Recognition 与 Visual Studio 2008 一起使用。
因此,默认情况下,devenv.exe 被列为“被阻止”的可执行文件。
如果您想试用带有 Windows 语音识别功能的 Visual Studio 2010,您可以通过转到 HKEY_CURRENT_USER\Software\Microsoft\Speech\Preferences\AppCompatDisableMSAA 来解除对 devenv.exe 的阻止
在 regedit 中并删除名为“devenv.exe”的值。
我还没有尝试过使用 Windows 语音识别的 VS 2010,所以你只能靠自己了。