简体   繁体   English

WP8语音识别UI导致未处理的异常

[英]WP8 Voice Recognition UI Causing unhandled exception

SpeechRecognizerUI sr = new SpeechRecognizerUI();
sr.Settings.ListenText = "Say the recipient and body of the E-Mail";
sr.Settings.ExampleText = "Mom saying Happy Mother's Day";
//await Speak("Say the recipient and body of the E-Mail"); // TTS prompt
var recoResult = await sr.RecognizeWithUIAsync();
MessageBox.Show(recoResult.RecognitionResult.Text);

This throws an unhandled exeption and the WP8 app crashes. 这将引发未处理的异常,并且WP8应用程序崩溃。 How do I fix this? 我该如何解决?

You may need to select a speech language goto phone SETTINGS then SPEECH . 您可能需要选择一种语音语言,然后转到“电话设置”,然后选择“ 语音”

In my settings the speech language is listed as none , once I selected a language ie English (United States) it seems to work. 在我的设置中,语音语言被列为none ,一旦我选择了一种语言,即英语(美国),它似乎就可以了。

Refer to this post 参考这篇文章

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM