How to set custom sound for the alarm? How should be the sound file format?

Asked on 06/12/2025

1 search

To set a custom sound for an alarm using the AlarmKit API, you need to define a custom sound by using the Alert sound struct. The sound file should be located either in your app's main bundle or in the Library/Sounds folder of your app's data container. Once you have specified the name of the sound file, you can configure your alarm with this custom sound.

The sound file format is not explicitly mentioned in the provided context, but typically, common audio formats like AAC or WAV are supported for such purposes. You may want to refer to Apple's official documentation for specific format requirements.

For more details on configuring the sound of your alarm, you can refer to the session Wake up to the AlarmKit API (15:35).