Windows phone文字转语音转换器,错误 [英] Windows phone Text to speech Converter, error
本文介绍了Windows phone文字转语音转换器,错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您正在开发 Windows手机应用程序。我需要将语音转换为文本..我正在使用以下代码..但是调试错误正面临着我..请告诉我我错在哪里,否则我还有其他方法。
添加
ID_CAP麦克风
ID_CAP_SPEECH_REGOGNITION
添加
hi i am developing a Windows phone application. where i need to convert speech to text .. i am using the following code .. but a debugg error is facing me .. plz tell me where i am wrong or else do i have any other method .
added
ID_CAP MICROPHONE
ID_CAP_SPEECH_REGOGNITION
added
using Windows.Phone.Speech.Recognition;
using Windows.Foundation
namespace txtspeech
{
public partial class MainPage : PhoneApplicationPage
{
// Constructor
public MainPage()
{
InitializeComponent();
this.syn = new SpeechSynthesizer();
}
private IAsyncAction task;
SpeechSynthesizer syn = new SpeechSynthesizer();
private void Read_Click(object sender, RoutedEventArgs e)
{
syn.CancelAll();
task = syn.SpeakTextAsync("hello");
}
}
}
也写了
also written
namespace samplespeech
{
public partial class MainPage : PhoneApplicationPage
{
// Constructor
public MainPage()
{
InitializeComponent();
}
SpeechSynthesizer synth;
private async void Button_Click(object sender, RoutedEventArgs e)
{ synth = new SpeechSynthesizer();
await synth.SpeakTextAsync("input TextBox");
}
}
}
在这两种情况下我都收到调试错误..错误发生在 SpeakTextAsync 按钮后2-3秒点击
推荐答案
这里是完美的链接!
解决方案是在移动设备上启用语音识别!
http://www.bjarneryd.se/?p= 115 [ ^ ]
here is the perfect link !
the solution is to enable speech recognition in mobile too !
http://www.bjarneryd.se/?p=115[^]
您好b $ b
可以PLZ分享您收到的错误消息,以便我可以帮助您查询
Hi
Could plz share your getting error message so that i can help to your queries
这篇关于Windows phone文字转语音转换器,错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文