---
title: soundName
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsusernotification/soundname
---

# soundName

Specifies the name of the sound to play when the notification is delivered.

## Declaration

```swift
var soundName: String? { get set }
```

## Discussion

Discussion Passing the NSUserNotificationDefaultSoundName constant causes the default notification center sound to be played. A value of nil means no sound is played.

## See Also

### Delivery Information

- [isPresented](foundation/nsusernotification/ispresented.md)
- [isRemote](foundation/nsusernotification/isremote.md)
