我正在尝试使用 Microsoft Kinect 进行音频识别。这是在 Windows 7 x64 机器上。
我能够使用 Kinect 进行语音识别,使用默认的 Windows 语音识别。 我已经安装了 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);
它在输出窗口中抛出以下内容..
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.
我在这里遗漏了一些小而重要的东西。因为,Windows 可以使用 Kinect 来识别语音,所以我确信所有必要的驱动程序都已安装。此外,我还安装了 SAPI 和语音 SDK。
最佳答案
忘记安装 x86 版本的 Microsoft Speech Platform - Server Runtime。
在“Kinect for Windows SDK Beta 2 更新”下提到:http://channel9.msdn.com/Series/KinectSDKQuickstarts/Getting-Started
https://stackoverflow.com/questions/9089931/