gpt4 book ai didi

swift - SFSpeechRecognizer 不可用

转载 作者:IT王子 更新时间:2023-10-29 05:49:55 31 4
gpt4 key购买 nike

我已经在以下位置下载了示例代码 SpeakToMe: https://developer.apple.com/library/prerelease/content/samplecode/SpeakToMe/Introduction/Intro.html
在设备上运行它并开始录制但没有收到任何响应。经过一些调试后,我发现 speechRecognizer.isAvailable 是错误的。但有时它仍然可用并正常工作。我已经在 https://developer.apple.com/reference/speech/sfspeechrecognizer/1649885-isavailable 上检查了互联网连接作为推荐
在这种情况下我该怎么办?

谢谢

最佳答案

需要在“设置”中启用 Siri 或听写:

  • iOS 10:设置 -> Siri -> 开启
  • iOS 11:设置 -> 按Siri 的主页/侧边按钮 -> 打开

  • 设置 -> 通用 -> 键盘 -> 启用听写 -> 打开

关于swift - SFSpeechRecognizer 不可用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39741938/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com