有关语音识别的问题Exception from HRESULT: 0x800455BC

gaocong1990 2013-05-14 03:42:31
                                string smsText = string.Empty;
SpeechRecognizerUI recognizer = new SpeechRecognizerUI();
IAsyncOperation<SpeechRecognitionUIResult> recoOperation;
IEnumerable<SpeechRecognizerInformation> chineseRecognizers = from recognizerInfo in InstalledSpeechRecognizers.All
where recognizerInfo.Language =="zh-CN"
select recognizerInfo;
recognizer.Recognizer.SetRecognizer(chineseRecognizers.ElementAt(0));
//recognizer.Recognizer.Grammars.AddGrammarFromPredefinedType("dictation", SpeechPredefinedGrammar.Dictation);
await voice.SpeakTextAsync("请说出短信内容");
try
{
recoOperation = recognizer.RecognizeWithUIAsync();
var recoResult = await recoOperation;
if ((int)recoResult.RecognitionResult.TextConfidence < (int)SpeechRecognitionConfidence.Medium)
{
await voice.SpeakTextAsync("说话声音太小");
return;
}
else
{
smsText = recoResult.RecognitionResult.Text;
}

运行过程中会出现
...全文
162 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
gaocong1990 2013-05-15
  • 打赏
  • 举报
回复
引用 3 楼 cuit 的回复:
你能一步步调试吗?
调试到这里(“ var recoResult = await recoOperation;”)的时候报错
gnimgnot 2013-05-15
  • 打赏
  • 举报
回复
你能一步步调试吗?
gaocong1990 2013-05-15
  • 打赏
  • 举报
回复
引用 1 楼 xarandy 的回复:
帮顶哦
你也遇到了这样的问题?
幻想曲 2013-05-14
  • 打赏
  • 举报
回复
帮顶哦

7,655

社区成员

发帖
与我相关
我的任务
社区描述
Windows Phone是微软发布的一款手机操作系统,它将微软旗下的Xbox LIVE游戏、Zune音乐与独特的视频体验整合至手机中。
社区管理员
  • Windows客户端开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧