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;
详细解决方案
有关语音识别的有关问题Exception from HRESULT: 0x800455BC
热度:326 发布时间:2016-04-25 07:15:08.0
相关解决方案
- Exception in thread "main" org.hibernate.HibernateException: /hibernate.cfg.xml解决办法
- 大神们开始觅错啦!org.hibernate.exception.SQLGrammarException: could not execute query
- struts2 exception,该怎么解决
- GWT 报错,能的请进: com.google.gwt.event.shared.UmbrellaException: Exception caught: Se
- Exception loading sessions from persistent storage,该怎么解决
- 呀javax.servlet.ServletException: Servlet execution threw an exception
- Exception in thread "main" java.lang.UnsupportedClassVersionError:有关问题
- null id in com.bsw.gms.hibernate.pojo.Score entry (don't flush the Session after an exception occurs,该怎么解决
- 紧急 Exception starting filter struts2
- org.hibernate.exception.SQLGrammarException: could not execute query有关问题求解
- SEVERE: Exception starting filter struts2,该怎么处理
- Cause: java.sql.SQLException: 关闭的连接]; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException解决思路
- struts2开发时出现的异常 Exception sending context initialized event to listener instance
- Uncaught exception java/lang/NullPointerException.错误原因
- Exception in thread "main" java.lang.NullPointerException,该怎么处理
- org.apache.commons.lang.exception.NestableRuntimeException
- 错误如下:严重: Exception starting filter struts2Filter
- Uncaught exception java/lang/NullPointerException.解决方法
- 急问:S60,eclipse,打开模拟器总是提示“unhandled exception.Close application?该如何解决
- 运作提示:Exception in threa "main" java.lang.NoSuchMethodError:main
- 严重: Exception starting filter struts2
- Exception in thread "main" java.lang.UnsatisfiedLinkError: com.
- Exception in thread "main" java.lang.InstantiationError:
- Exception in thread "Thread-7" java.lang.UnsatisfiedLinkError:
- EJB调度失败Error: Exception preparing module
- Exception in thread "main" java.lang.NoClassDefFound:HelloWorld,该怎么处理
- Tomcat起步报错 严重: Exception starting filter struts2各位大侠帮帮忙啊
- 启动tomcat时 严重: Exception starting filter struts2,该怎么解决
- Exception in thread "main"不知名的异常!
- exception is org.hibernate.MappingException: entity class not found: