---
title: sampleRate
framework: screencapturekit
role: symbol
role_heading: Instance Property
path: screencapturekit/scstreamconfiguration/samplerate
---

# sampleRate

The sample rate for audio capture.

## Declaration

```swift
var sampleRate: Int { get set }
```

## Discussion

Discussion The framework supports sample rates of 8000, 16000, 24000, and 48000. If you don’t specify a sample rate, or specify an unsupported value, the system uses a default sample rate of 48 kHz.

## See Also

### Configuring audio

- [capturesAudio](screencapturekit/scstreamconfiguration/capturesaudio.md)
- [channelCount](screencapturekit/scstreamconfiguration/channelcount.md)
- [excludesCurrentProcessAudio](screencapturekit/scstreamconfiguration/excludescurrentprocessaudio.md)
