错误“合同违规 - 点击主页按钮退出”在iOS上使用Speech SDK [英] Error "Contract Violation - Hit Home Button to Exit" with Speech SDK on iOS

查看:127
本文介绍了错误“合同违规 - 点击主页按钮退出”在iOS上使用Speech SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我在iOS上使用Project Oxford Speech SDK遇到了一个问题,希望你能帮我解决。重现步骤:

Hi all, I am running into an issue on iOS with the Project Oxford Speech SDK which I hope you can help me solve. Steps to reproduce:


  1. 构建并运行ios演示代码
  2. 点击"开始"然后让它超时(不要说什么)。
  3. 再次点击"开始"
  4. 将出现一个警告框,显示"点击主页按钮退出 - 合同违规"
  5. 您现在需要完全退出应用程序,因为屏幕显示为灰色

当麦克风录制状态从1变为0时,我可以通过调用endMicAndRecognition来阻止此警报出现,但这可以防止所有未来的识别工作 - 就像麦克风被禁用或其他东西一样。

I can prevent this alert from appearing by calling endMicAndRecognition when the microphone recording state changes from 1 to 0 but this then prevents all future recognition attempts from working - as if the mic is disabled or something.

任何想法为什么会这样?这在模拟器和我的测试设备中都会发生。

Any ideas why this is happening? This happens in both the simulator and my test devices.

推荐答案

Hi Boosted Human,

Hi Boosted Human,

最近发布的这个问题有一个错误修复。 你可以重新下载SDK吗? 您将在更新的示例中注意到,endMicAndRecognition()是必需的,但您报告的问题是固定的。

There was a bug fix around this issue posted recently.  Can you re-download the SDK.  You will aslo notice in the updated examples, that endMicAndRecognition() is required, but that the issue you reported is fixed.


这篇关于错误“合同违规 - 点击主页按钮退出”在iOS上使用Speech SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆