Hallo,
I would like to imitate the effect when you hear music with one app A and then a voice message is played in another app B. App B then turns down the sound of App A running in background and playing the voice message and afterwards turning up the volume again.
App A in my case is deezer and App B would be the Pythonista script, that would put out a signal sound to the user.
Pausing music in a and turning it on afterwards would also work for me.
Kind regards
Bastian