Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SFTranscriptionSegment's timestamp is always 0

This is a questoin regarding new iOS 10 Speech framework. I get the speech recognition result using following method

 recognitionTask =   [speechRecgzr recognitionTaskWithRequest:recognitionRequest resultHandler:^(SFSpeechRecognitionResult * _Nullable result, NSError * _Nullable error) {

    }

But the timestamp of each SFTranscriptionSegment in result is 0 and also confidence is always 0

What can be the problem here? Have apple not implemented the API properly yet?

Thank you.

like image 524
NSGodMode Avatar asked Sep 06 '16 22:09

NSGodMode


1 Answers

After few weeks I found that by setting this I can get timestamp and confidence:

speechRecgzr.defaultTaskHint = SFSpeechRecognitionTaskHintDictation;
like image 88
NSGodMode Avatar answered Oct 16 '22 16:10

NSGodMode