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).

Wake up to the AlarmKit API
Rrrr-rrrrr-innng! From countdown timers in your recipe app to wake-up alarms in your travel planning app, the AlarmKit framework in iOS and iPadOS 26 brings timers and alarms to the Lock Screen, Dynamic Island, and more. Learn how to create and manage your app’s alarms, customize their Live Activities, and offer custom alert actions using the App Intents framework. To get the most from this video, we recommend first watching “Meet ActivityKit” from WWDC23.

Enhance your app’s audio recording capabilities
Learn how to improve your app’s audio recording functionality. Explore the flexibility of audio device selection using the input picker interaction on iOS and iPadOS 26. Discover APIs available for high-quality voice recording using AirPods. We’ll also introduce spatial audio recording and editing capabilities that allow you to isolate speech and ambient background sounds — all using the the AudioToolbox, AVFoundation, and Cinematic frameworks.