语音识别 - 未处理的异常 - 未找到 SAPI,即使已安装
我正在尝试使用 Microsoft Kinect 进行音频识别。这是在 Windows 7 x64 计算机上。
我可以使用默认的 Windows 语音识别来使用 Kinect 进行语音识别。 我已经安装了 Microsoft Speech SDK 5.1、SpeechPlatformRuntime (x64) 和 MicrosoftSpeechPlatformSDK (x64),针对 .NET 4.0 进行编译(也尝试使用客户端版本)。
但是当我尝试在 VS 的 wpf 应用程序中执行此操作时,
RecognizerInfo ri = SpeechRecognitionEngine.InstalledRecognizers().Where(
r => r.Id == "SR_MS_en-US_Kinect_10.0").FirstOrDefault();
var sre = new SpeechRecognitionEngine(ri.Id);
它会在输出窗口中显示以下内容。
Microsoft.Speech.dll 中发生了“System.Runtime.InteropServices.COMException”类型的第一次机会异常
Microsoft.Speech.dll 中首次出现“System.PlatformNotSupportedException”类型的异常
Microsoft.Speech.dll 中发生“System.PlatformNotSupportedException”类型的未处理异常附加信息:语音识别在此系统上不可用。找不到 SAPI 和语音识别引擎。
我在这里遗漏了一些小但重要的东西。既然Windows可以使用Kinect来识别语音,我确信所有必要的驱动程序都已安装。另外,我还安装了SAPI和语音SDK。
I am trying to use Microsoft Kinect, for audio recognition. This is on a Windows 7 x64 machine.
I am able to use the Kinect for Speech Recognition, using the default Windows Speech Recognition.
I have installed Microsoft Speech SDK 5.1, SpeechPlatformRuntime (x64) and MicrosoftSpeechPlatformSDK (x64), compiling for .NET 4.0 (tried with client version too).
But when I try to do this in a wpf app in VS,
RecognizerInfo ri = SpeechRecognitionEngine.InstalledRecognizers().Where(
r => r.Id == "SR_MS_en-US_Kinect_10.0").FirstOrDefault();
var sre = new SpeechRecognitionEngine(ri.Id);
It throws up the following in the Output window..
A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in Microsoft.Speech.dll
A first chance exception of type 'System.PlatformNotSupportedException' occurred in Microsoft.Speech.dll
An unhandled exception of type 'System.PlatformNotSupportedException' occurred in Microsoft.Speech.dllAdditional information: Speech Recognition is not available on this system. SAPI and Speech Recognition engines cannot be found.
I am missing something small but important here. Since, Windows can use the Kinect to recognize the speech, I am sure all the necessary drivers are installed. Also, I have installed SAPI, and the speech SDK.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
忘记安装 x86 版本的 Microsoft Speech Platform - Server Runtime。
此处在“Kinect for Windows SDK Beta 2 更新”下提到:http://channel9 .msdn.com/Series/KinectSDKQuickstarts/入门
Had forgotten to install the x86 version of Microsoft Speech Platform - Server Runtime.
It's mentioned here, under "Updates for Kinect for Windows SDK Beta 2" : http://channel9.msdn.com/Series/KinectSDKQuickstarts/Getting-Started