Skip to content
This repository has been archived by the owner on Jul 19, 2018. It is now read-only.
/ UnitySpeakerFix Public archive

Forces audio to speaker while using the mic, on iPhone

Notifications You must be signed in to change notification settings

cbaltzer/UnitySpeakerFix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

WARNING

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.


Unity iPhone Speaker Fix

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.

How-To

Simply install the Unity package, and add a call to iPhoneSpeaker.ForceToSpeaker() after you call Microphone.Start().

Credit

Base code from these two SO threads:

About

Forces audio to speaker while using the mic, on iPhone

Resources

Stars

Watchers

Forks

Packages

No packages published