---
title: sampleRate
framework: avfaudio
role: symbol
role_heading: Instance Property
path: avfaudio/avaudioformat/samplerate
---

# sampleRate

The audio format sampling rate, in hertz.

## Declaration

```swift
var sampleRate: Double { get }
```

## See Also

### Getting Audio Format Values

- [channelCount](avfaudio/avaudioformat/channelcount.md)
- [channelLayout](avfaudio/avaudioformat/channellayout.md)
- [formatDescription](avfaudio/avaudioformat/formatdescription.md)
