<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVSpeechSynthesisVoice/audioFileSettings",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:objc(cs)AVSpeechSynthesisVoice(py)audioFileSettings"
  },
  "title" : "audioFileSettings"
}
-->

# audioFileSettings

A dictionary that contains audio file settings.

```
var audioFileSettings: [String : Any] { get }
```

## Discussion

If you want to generate speech and save it as an audio file to share or play later, use this dictionary to create an [`AVAudioFile`](/documentation/AVFAudio/AVAudioFile) instance and pass it as the `settings` parameter.

You can determine the [`AVAudioCommonFormat`](/documentation/AVFAudio/AVAudioCommonFormat) and interleaved properties of a voice from this dictionary. The format of this dictionary matches the data that [`AVSpeechSynthesizer.BufferCallback`](/documentation/AVFAudio/AVSpeechSynthesizer/BufferCallback) provides for the same voice.

---

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)