---
title: "AudioServicesPlaySystemSound(_:spatialExperience:)"
framework: audiotoolbox
role: symbol
role_heading: Function
path: "audiotoolbox/audioservicesplaysystemsound(_:spatialexperience:)"
---

# AudioServicesPlaySystemSound(_:spatialExperience:)

Play a system sound with the provided spatial audio experience.

## Declaration

```swift
func AudioServicesPlaySystemSound(_ systemSoundID: SystemSoundID, spatialExperience: any SpatialAudioExperience) async
```

## Mentioned in

Anchoring sound to a window or volume

## Discussion

Discussion The system sound has this spatial experience for the duration of its playback and cannot change mid-playback.
