Let\'s suppose that we have the following scenario: something is playing on an android device (an mp3 par example, but it could be anything that use the audio part of an android
Consider using the AudioPlaybackCapture API that was introduced in Android 10 if you want to get the audio stream for a particular app.