<!--
{
  "availability" : [
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioSession/setIntendedSpatialExperience(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "s:So14AVAudioSessionC8AVFAudioE28setIntendedSpatialExperienceyyAC0abfG0_pKF"
  },
  "title" : "setIntendedSpatialExperience(_:)"
}
-->

# setIntendedSpatialExperience(_:)

Sets the spatial audio experience your app intends to provide the user.

```
@nonobjc func setIntendedSpatialExperience(_ spatialExperience: any AVAudioSessionSpatialExperience) throws
```

## Discussion

- spatialExperience: The spatial audio experience to set.

---

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)