---
title: duration
framework: speech
role: symbol
role_heading: Instance Property
path: speech/sftranscriptionsegment/duration
---

# duration

The number of seconds it took for the user to speak the utterance represented by the segment.

## Declaration

```swift
var duration: TimeInterval { get }
```

## Discussion

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?".

## See Also

### Getting audio timing information

- [timestamp](speech/sftranscriptionsegment/timestamp.md)
