I have not done Unity development in many years, and have no intention of updating or maintaining this package and am archiving the repo. Feel free to fork away.
When using microphone input, Unity iPhone switches audio output to the earpiece speaker, instead of the usual speakerphone speaker. As a result, all the audio in game suddenly becomes very quiet, even at max volume. In particular, this is problematic for games which include voice-chat.
Simply install the Unity package, and add a call to iPhoneSpeaker.ForceToSpeaker()
after you call Microphone.Start()
.
Base code from these two SO threads: