I tried using the official Apple example: SpeekToMe
I edited the example in the following way to get the confidence levels:
if let result = result {
for t in result.transcriptions
{
for s in t.segments
{
print("POSSIBLE TRANSCRIPTION: \(s.substring) confidence: \(s.confidence)")
}
}
self.textView.text = result.bestTranscription.formattedString
isFinal = result.isFinal
}
Problem is the confidence levels are always = 0.
I found similar questions but setting the defaultTaskHint to dictation (or anything else) didn't help.
Does anyone have any suggestions on how to get the proper confidence values?