这是一个关于新的 iOS 10 语音框架的问题。 我使用以下方法获得语音识别结果
recognitionTask = [speechRecgzr recognitionTaskWithRequest:recognitionRequest resultHandler:^(SFSpeechRecognitionResult * _Nullable result, NSError * _Nullable error) {
}
但结果中每个 SFTranscriptionSegment 的时间戳为 0,而且置信度始终为 0
这里可能是什么问题?苹果还没有正确实现 API 吗?
谢谢。
最佳答案
几周后我发现通过设置这个我可以获得时间戳和置信度:
speechRecgzr.defaultTaskHint = SFSpeechRecognitionTaskHintDictation;
关于objective-c - SFTranscriptionSegment 的时间戳始终为 0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39358599/