How to Play Sound without Stopping Music by Other Apps on iOS

Mahmud Ahsan
Thinkdiff
Published in
Aug 9, 2023

--

In one of my iOS apps, there is a pronunciation feature. So when a user taps speak, it starts saying the word. But the problem is, when a user opens the app if any other app is playing music, it stops that, which is annoying for a dictionary app.

There are two ways to solve the problem:

  1. Duck Mode

--

--

I'm a software engineer passionate about web and mobile app development.