我已将示例项目部署到没有任何音频设置的 Windows 2008 虚拟服务器。
我已经安装了 UCMA 3.0 运行时。此应用程序在 Windows 7 64 位开发笔记本电脑上运行。
我收到以下异常。
Error: Recognizer setting not supported by recognizer.
Stacktrace: at Microsoft.Speech.Internal.SapiInterop.SapiRecognizer.SetProperty(ISpRecognizer sapiRecognizer, String name, Object value)
at Microsoft.Speech.Internal.SapiInterop.SapiRecognizer.<>c__DisplayClass1.<SetPropertyNum>b__0()
at Microsoft.Speech.Recognition.SpeechRecognitionEngine.UpdateRecognizerSetting(String settingName, Int32 updatedValue)
at Microsoft.SpeechServer.Core.SpeechRecognizer..ctor(ICallProxy callProxy)
at Microsoft.SpeechServer.Core.TelephonySession..ctor(ICallProxy callProxy)
at Microsoft.SpeechServer.Core.ApplicationHost..ctor(ICallProxy callProxy, Uri vxmlUrl)
at Microsoft.Speech.VoiceXml.Browser.RunWorker()
at Microsoft.Speech.VoiceXml.Browser.Run(Uri vxmlPage, CookieContainer container)
从这段代码中会发生这种情况:
InitializeVoiceXmlBrowswer();
var helloWorldUri = new Uri(new Uri(Environment.CurrentDirectory + "\\"), "HelloWorld.vxml");
VoiceXmlBrowser.SetAudioVideoCall(call);
VoiceXmlResult voiceResult = VoiceXmlBrowser.Run(helloWorldUri, null);