【问题标题】:SpeechRecognitionEngine An asynchronous module or handler completed while an asynchronous operation was still pendingSpeechRecognitionEngine 异步模块或处理程序已完成,而异步操作仍处于挂起状态
【发布时间】:2018-11-05 11:31:37
【问题描述】:

当我们只是在 using 语句中正确地实例化类而不在仅返回字符串中执行其方法时,我们没有问题。

但是当添加 LoadGrammar 及其任何方法时,浏览器加载时间过长(例如 5 分钟)然后它将返回标题中描述的错误

主要

【问题讨论】:

    标签: c# asp.net asp.net-web-api speech-recognition


    【解决方案1】:

    经过长时间的分析,发现SpeechRecognitionEngine下的LoadGrammar和其他一些方法是异步运行的。

    所以我在另一个这样的线程中单独运行它。

    现在一切正常。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-07-30
      • 2013-03-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多