---
title: soundName
framework: eventkit
role: symbol
role_heading: Instance Property
path: eventkit/ekalarm/soundname
---

# soundName

The name of the sound to play when the alarm triggers.

## Declaration

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

## Mentioned in

Setting an alarm

## Discussion

Discussion The value of this property is the name of a system sound that can be used with the init(named:) class method to create an NSSound object. Assigning this property a value will set the emailAddress and url properties to nil.

## See Also

### Triggering Alarm Actions

- [EKAlarmType](eventkit/ekalarmtype.md)
- [type](eventkit/ekalarm/type.md)
- [emailAddress](eventkit/ekalarm/emailaddress.md)
