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

# Format Settings

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

## Topics

### Settings

[`AVFormatIDKey`](/documentation/AVFAudio/AVFormatIDKey)

An integer value that represents the format of the audio data.

[`AVSampleRateKey`](/documentation/AVFAudio/AVSampleRateKey)

A floating point value that represents the sample rate, in hertz.

[`AVNumberOfChannelsKey`](/documentation/AVFAudio/AVNumberOfChannelsKey)

An integer value that represents the number of channels.



---

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)