<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UserNotifications",
  "identifier" : "/documentation/UserNotifications/UNNotificationSound/defaultCriticalSound(withAudioVolume:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "User Notifications"
    ],
    "preciseIdentifier" : "c:objc(cs)UNNotificationSound(cm)defaultCriticalSoundWithAudioVolume:"
  },
  "title" : "defaultCriticalSound(withAudioVolume:)"
}
-->

# defaultCriticalSound(withAudioVolume:)

Creates a sound object that plays the default critical alert sound at the volume you specify.

```
class func defaultCriticalSound(withAudioVolume volume: Float) -> Self
```

## Parameters

`volume`

The volume must be a value between 0.0 and 1.0.

## Return Value

A sound object representing the default critical alert sound at the specified volume.

## Discussion

Critical alerts ignore the mute switch and Do Not Disturb. They require a special entitlement issued by Apple.

---

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)