SFSpeechRecognizer 不可用
SFSpeechRecognizer is not available
我已经在以下网址下载了示例代码 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:设置 -> 按
Home/Side Siri 按钮 -> 打开
或
- 设置 -> 通用 -> 键盘 -> 启用听写 -> 打开
Eddie 的回答现在在 iOS 11 中有点偏离,因为 Siri 设置已更改。
From Settings, select Siri & Search:
Then choose one or both of these options:
我已经在以下网址下载了示例代码 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:设置 -> 按 Home/Side Siri 按钮 -> 打开
或
- 设置 -> 通用 -> 键盘 -> 启用听写 -> 打开
Eddie 的回答现在在 iOS 11 中有点偏离,因为 Siri 设置已更改。
From Settings, select Siri & Search:
Then choose one or both of these options: