NSG*_*ode 6 speech-recognition objective-c ios10
这是一个关于新的 iOS 10 Speech 框架的问题。我使用以下方法获得语音识别结果
recognitionTask = [speechRecgzr recognitionTaskWithRequest:recognitionRequest resultHandler:^(SFSpeechRecognitionResult * _Nullable result, NSError * _Nullable error) {
}
Run Code Online (Sandbox Code Playgroud)
但是结果中每个 SFTranscriptionSegment 的时间戳为 0,并且置信度始终为 0
这里可能有什么问题?苹果还没有正确实现 API 吗?
谢谢你。
几周后,我发现通过设置这个我可以获得时间戳和置信度:
speechRecgzr.defaultTaskHint = SFSpeechRecognitionTaskHintDictation;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
633 次 |
| 最近记录: |