duration
The number of seconds it took for the user to speak the utterance represented by the segment.
Declaration
var duration: TimeInterval { get }Discussion
The duration contains the number of seconds it took for the user to speak the one or more words (utterance) represented by the segment. For example, the SFSpeechRecognizer sets duration to 0.6 if the user took 0.6 seconds to say “time” in the transcription of “What time is it?".