We are using the Unity Microphone class to record , play and stop audios in our game .
In iOS we use the settings : Prepare iOS for Recording is enabled as we need to reduce latency for when recording starts
Force iOS Speakers When Recording : This setting is causing issues for us when the user wants to use headphones , because it routes audio to the speakers even if the user is on headphones.If we disable the above setting , the functionality works fine for headphones but on plugging/un-plugging earphones the volume of the speakers drops drastically and is hardly audible
We have used the speaker fix solution GitHub - 10people/UnitySpeakerFix: Forces audio to speaker while using the mic, on iPhone , but its working for OS version less than 12 only, what about iOS versions greater than 12 ?
We have followed steps mentioned in the thread : Audio coming out of small phone call speaker instead of speakers on bottom. as well , but the solution was to use the UnitySpeakerFix script which isn’t working for us.