<!--
{
  "documentType" : "article",
  "framework" : "AudioToolbox",
  "identifier" : "/documentation/AudioToolbox/1618202-alert-sound-identifiers",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Alert Sound Identifiers"
}
-->

# Alert Sound Identifiers

Identifiers for alert sounds and alternatives to sounds, for use with the [`AudioServicesPlayAlertSound(_:)`](/documentation/AudioToolbox/AudioServicesPlayAlertSound(_:)) function.

## Topics

### Constants

[`var kSystemSoundID_Vibrate: SystemSoundID`](/documentation/AudioToolbox/kSystemSoundID_Vibrate)

On the iPhone, use this constant with the [`AudioServicesPlayAlertSound(_:)`](/documentation/AudioToolbox/AudioServicesPlayAlertSound(_:)) function to invoke a brief vibration. On the iPod touch, does nothing.

[`var kSystemSoundID_UserPreferredAlert: SystemSoundID`](/documentation/AudioToolbox/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_FlashScreen: SystemSoundID`](/documentation/AudioToolbox/kSystemSoundID_FlashScreen)

On the desktop, use this constant with the [`AudioServicesPlayAlertSound(_:)`](/documentation/AudioToolbox/AudioServicesPlayAlertSound(_:)) function to display a flash of light on the screen.

[`var kUserPreferredAlert: SystemSoundID`](/documentation/AudioToolbox/kUserPreferredAlert)

A deprecated sound identifier.



---

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)