简体   繁体   English

文本的语音识别Windows Phone 8

[英]Speech recognition to text Windows Phone 8

Is possible to recognition speech to text in Windows Phone 8? 在Windows Phone 8中可以识别语音到文本吗?

Is supported for all languages or only installed? 是否支持所有语言或仅安装?

Just use the services out of the box 只需使用开箱即用的服务

private async void ButtonSR_Click(object sender, RoutedEventArgs e)
{
  // Create an instance of SpeechRecognizerUI.
  this.recoWithUI = new SpeechRecognizerUI();

  // Start recognition (load the dictation grammar by default).
  SpeechRecognitionUIResult recoResult = await recoWithUI.RecognizeWithUIAsync();

  // Do something with the recognition result.
  MessageBox.Show(string.Format("You said {0}.", recoResult.RecognitionResult.Text));
}

I'd suggest to use the google api text to speech perfectly free on windows phone 8 and it works great: 我建议使用Google api文本在Windows Phone 8上完全免费地进行语音播放,并且效果很好:

you can find how to do it here: How can I use google text to speech api in windows form? 您可以在此处找到操作方法: 如何在Windows窗体中使用Google文本语音API?

of course this needs internet connection and NAudio which is open source! 当然,这需要互联网连接和开放源代码的NAudio!

google works the best for me 谷歌最适合我

if you want an offline option you might be interested in: http://www.codeproject.com/Articles/483347/Speech-recognition-speech-to-text-text-to-speech-a 如果您想要脱机选项,则可能会对以下内容感兴趣: http : //www.codeproject.com/Articles/483347/Speech-recognition-speech-to-text-text-to-speech-a

http://www.codeproject.com/Articles/380027/Csharp-Speech-to-Text http://www.codeproject.com/Articles/380027/Csharp-Speech-to-Text

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

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