I'm working on an assistant app similar to Siri, but instead of stopping music apps or whatever is playing the background, I'd like to lower the volume of the running app(s), speak, then increase it back to where it was.
What API(s) can I use to achieve this?