简体   繁体   English

找不到Windows Phone 8语音识别参考

[英]Can't find Windows Phone 8 speech recognition reference

I'm developing an app for Windows Phone 8 where I need to reconize speech input. 我正在为Windows Phone 8开发一个应用程序,需要在该应用程序中调整语音输入。 I'm trying to use this code: 我正在尝试使用以下代码:

SpeechRecognizerUI speechRecognition = new SpeechRecognizerUI();
SpeechRecognitionUIResult recoResult = await speechRecognition.RecognizeWithUIAsync();

if (recoResult.ResultStatus == SpeechRecognitionUIStatus.Succeeded)
{
  MessageBox.Show(string.Format("You said {0}.", recoResult.RecognitionResult.Text));
}

But I need to add a reference, a reference that I can't find in the "add reference" dialog, or with the browse function. 但是我需要添加一个引用,或者在“添加引用”对话框中找不到的引用,或者使用浏览功能。 Do I need to download it somewhere? 我需要在某个地方下载吗?

Thanks! 谢谢!

You shouldn't need to add a reference manually. 您无需手动添加参考。 Add

using Windows.Phone.Speech.Recognition;

to the top of your code. 到代码的顶部

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

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