---
title: "AudioServicesPlayAlertSoundWithCompletion(_:_:)"
framework: audiotoolbox
role: symbol
role_heading: Function
path: "audiotoolbox/audioservicesplayalertsoundwithcompletion(_:_:)"
---

# AudioServicesPlayAlertSoundWithCompletion(_:_:)

## Declaration

```swift
func AudioServicesPlayAlertSoundWithCompletion(_ inSystemSoundID: SystemSoundID, _ inCompletionBlock: (() -> Void)?)
```

## See Also

### Playing Sounds

- [AudioServicesPlaySystemSoundWithCompletion(_:_:)](audiotoolbox/audioservicesplaysystemsoundwithcompletion(_:_:).md)
- [AudioServicesPlayAlertSound(_:)](audiotoolbox/audioservicesplayalertsound(_:).md)
- [AudioServicesPlaySystemSound(_:)](audiotoolbox/audioservicesplaysystemsound(_:).md)
