I want to change the text of red bar shown below, how do I do it? I see it when my swift app is currently using the microphone and is in the background.
You cannot change it yourself.
This is a system level event that occurs when your app is running in background stage and using services like location, audio, etc. This link discusses about the types of background services an app can use.