<!--
{
  "documentType" : "article",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/audio-settings",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Audio settings"
}
-->

# Audio settings

Configure audio processing settings using standard key and value constants.

## Topics

### Formats

[`class AVAudioFormat`](/documentation/AVFAudio/AVAudioFormat)

An object that describes the representation of an audio format.

[`class AVAudioChannelLayout`](/documentation/AVFAudio/AVAudioChannelLayout)

An object that describes the roles of a set of audio channels.

[`let AVChannelLayoutKey: String`](/documentation/AVFAudio/AVChannelLayoutKey)

[Linear PCM Format Settings](/documentation/AVFAudio/linear-pcm-format-settings)

The audio settings that apply to linear PCM audio formats.

[Format Settings](/documentation/AVFAudio/format-settings)

The audio settings that apply to all audio formats that the audio player and recorder classes support.

### Settings

[Sample Rate Conversion Settings](/documentation/AVFAudio/sample-rate-conversion-settings)

The constants that define sample rate converter audio quality settings.

[`enum AVAudioQuality`](/documentation/AVFAudio/AVAudioQuality)

The values that specify the sample rate audio quality for encoding and conversion.

[`let AVEncoderAudioQualityKey: String`](/documentation/AVFAudio/AVEncoderAudioQualityKey)

A constant that represents an integer from the audio quality enumeration.

[Encoder Settings](/documentation/AVFAudio/encoder-settings)

The constants that define the audio encoder settings for the audio recorder class.

  <doc://com.apple.documentation/documentation/AVFoundation/time-pitch-algorithm-settings>

### Constants

[Encoder Bit Rate Strategy Values](/documentation/AVFAudio/encoder-bit-rate-strategy-values)

The constants that represent the possible bit rate strategy values.

[`var AVAUDIOENGINE_HAVE_AUAUDIOUNIT: Int32`](/documentation/AVFAudio/AVAUDIOENGINE_HAVE_AUAUDIOUNIT)



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)