last versions of android block using microphone except when using the app I want to give the permission to use microphone in background for a certain app
Depending on your device and Andriod version go to settings >apps> 3 dots upper right corner tap>permission manager tap>select each app which can have .