<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioToolbox",
  "identifier" : "/documentation/AudioToolbox/kSystemSoundID_UserPreferredAlert",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Audio Toolbox"
    ],
    "preciseIdentifier" : "c:@Ea@kSystemSoundID_UserPreferredAlert@kSystemSoundID_UserPreferredAlert"
  },
  "title" : "kSystemSoundID_UserPreferredAlert"
}
-->

# kSystemSoundID_UserPreferredAlert

On the desktop, use this constant with the [`AudioServicesPlayAlertSound(_:)`](/documentation/AudioToolbox/AudioServicesPlayAlertSound(_:)) function to play the alert specified in the Sound preference pane.

```
var kSystemSoundID_UserPreferredAlert: SystemSoundID { get }
```

---

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)