---
title: duration
framework: watchkit
role: symbol
role_heading: Instance Property
path: watchkit/wkaudiofileasset/duration
---

# duration

The duration (in seconds) of the audio file.

## Declaration

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

## Discussion

Discussion The duration of the audio file is obtained from the audio file itself.

## See Also

### Getting the Asset’s Properties

- [url](watchkit/wkaudiofileasset/url.md)
- [title](watchkit/wkaudiofileasset/title.md)
- [albumTitle](watchkit/wkaudiofileasset/albumtitle.md)
- [artist](watchkit/wkaudiofileasset/artist.md)
