Audio Coaching
This is engineering guidance for the audio layer only. Using haptics as the second channel when the audio is busy is covered in accessibility, and running the workout session itself on a watch is covered in watch apps. The product-level requirement, duck the user’s music instead of stopping it, is set out in the HIIT app guide; these pages are how to meet it.
Three evidence rules hold throughout. The documentation sites for React Native, Expo, Flutter and Capacitor were unreachable from our research environment, so nothing here describes a cross-platform audio plugin. We publish no latency, ducking-depth or battery numbers of our own; the one ducking figure quoted is Google’s, and attributed to it. And where the platform pages are silent — whether an iPhone app keeps running between cues when nothing is playing, which volume stream an Android usage maps to, whether TextToSpeech manages audio focus — the page says it could not verify the point rather than filling the gap. Store policy, including App Store guideline 2.5.4 on background services, belongs to compliance.
Configure the session (iOS)
The category that survives the lock, the option that lowers the music instead of stopping it, and the speech synthesizer that has to be held on to.
- playback or ambient: choosing the AVAudioSession category for workout cuesApple's default session silences the user's music and goes quiet on lock. Which category and mode let a workout cue play over music with the screen off.UpdatedVerified October 3, 2026
- duckOthers: lowering the user's music for a workout cue, then giving it backduckOthers works only with playback, playAndRecord or multiRoute, lasts while your session is active, and Apple says use it for a few seconds at most.UpdatedVerified October 3, 2026
- Spoken workout cues with AVSpeechSynthesizer, and when to stay quietRetain the synthesizer, cancel stale cues with stopSpeaking(at:), pick usesApplicationAudioSession, and obey promptStyle, which names exercise prompts.UpdatedVerified October 3, 2026
When something else happens
A phone call, an earbud falling out, the screen locking. The transitions where workout audio actually breaks.
- Audio interruptions during a workout on iOS: calls, Siri and the cue that never comes backinterruptionNotification, shouldResume, the WasSuspended key and iOS 27's lifecycle notifications, mapped to what a workout's cues and clock should do.UpdatedVerified October 3, 2026
- Headphones out mid-run: route changes on iOS and AUDIO_BECOMING_NOISY on AndroidoldDeviceUnavailable on iOS and ACTION_AUDIO_BECOMING_NOISY on Android: stop speaking out loud when earbuds drop, but keep the workout clock running.UpdatedVerified October 3, 2026
- Background audio for an iPhone workout app: UIBackgroundModes audio, and what it does not promiseTwo switches keep iPhone workout cues playing after the lock: the playback category and the audio background mode. What Apple says, and what it doesn't.UpdatedVerified October 3, 2026
Android audio focus and speech
Asking for focus the right way, the Android 15 rule that fails background cues silently, TextToSpeech, and the usage constant nobody reads.
- Android audio focus for workout cues: AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCKRequest MAY_DUCK focus per cue, play only when granted, abandon the same request. Why podcasts pause instead, and why AUDIOFOCUS_GAIN mutes music.UpdatedVerified October 3, 2026
- AUDIOFOCUS_REQUEST_FAILED in the background on Android 15: your cue needs a foreground serviceApps targeting Android 15 can't request audio focus unless they are the top app or run a foreground service. Which service type a workout app should use.UpdatedVerified October 3, 2026
- TextToSpeech workout cues on Android: initialization, focus, queue and completionOnInitListener timing, the TTS_SERVICE queries element, QUEUE_FLUSH for stale cues, and releasing audio focus in onDone so the user's music comes back.UpdatedVerified October 3, 2026
- Which AudioAttributes usage a workout coaching cue should declareUSAGE_ASSISTANCE_NAVIGATION_GUIDANCE, USAGE_ASSISTANT or USAGE_MEDIA: what Google documents each usage changes, and our pick for cues, tones and sessions.UpdatedVerified October 3, 2026
On the wrist, and proving it
Speaker or Bluetooth on Wear OS and Apple Watch, and a device test matrix built from documented events.
- Audio cues on the wrist: Wear OS speakers, Bluetooth, and Apple Watch workout sessionsGoogle lets fitness apps speak exercise instructions on a Wear OS speaker but keeps media on Bluetooth; Apple ties watch cues to the workout session.UpdatedVerified October 3, 2026
- Testing workout audio cues: calls, Siri, Bluetooth and the podcast that never resumesA device test matrix for workout audio cues on iOS and Android, built from documented events: calls, Siri, podcasts, unplugged earbuds, Android 15 focus.UpdatedVerified October 3, 2026
Frequently asked questions
- Why do so many workout apps stop the user's music when they speak a cue?
- Because the platform default does exactly that, and so does the obvious fix done halfway. Apple documents that the default iOS audio session silences other background audio when the app plays, and that the playback category, which keeps cues alive when the screen locks, is nonmixable by default. On Android, a cue that requests full AUDIOFOCUS_GAIN instead of transient ducking focus tells the music app it has lost focus, and on Android 12 and higher Google documents a forced fade-out that leaves it muted. Both platforms have a documented way to lower the music for a few seconds and give it back; the pages here are about using it.
- Is a spoken cue or a haptic better for telling someone a workout interval has ended?
- Use both, and design for the moment one of them fails. Spoken cues carry information a tap cannot, such as what comes next and how long it lasts, but the audio channel is shared with the user's music and can be taken away by a call, by Siri or by an earbud falling out. A haptic reaches the person even then, but only if the device is touching them. The accessibility section covers haptics as the second channel in detail, and these pages route a cue to a haptic whenever the documented signals say speech should not play.
- What does this section not cover, and why?
- Cross-platform frameworks and anything we could not read. The React Native, Expo, Flutter and Capacitor documentation sites were unreachable from our research environment, so these pages make no claims about audio plugins for those frameworks. We also publish no measured latency, ducking depth or battery figures, because we have not run those tests, and where Apple's or Google's pages are silent, for example on which volume stream each Android usage maps to, the page says so rather than guessing.
Independent comparison, last reviewed October 3, 2026. Pricing, rate limits, and feature availability change often — confirm current details in each provider’s official documentation before you commit. Product and company names are trademarks of their respective owners; AIFitnessAPI is not affiliated with, endorsed by, or sponsored by any product listed here.