I wonder if there is any way to disable microphone programmatically (to get rid of the red bar in the background)?
I use OpenEars to listen for commands in the app. When I go to the background red bar appears (which is obvious, as microphone is active).
The problem is that the microphone is active even when OpenEars is suspended
. To avoid unnecessary questions I cannot stop
OpenEars as it ends up with mixing audioSession with my other sources.