Microphone Noise in Android Devices

I’m using this script to hear my voice in android voices

int min = 0;
int max = 0;

Microphone.GetDeviceCaps(Microphone.devices[0], out min, out max);
_audioSource.clip = Microphone.Start(Microphone.devices[0], true, 1, max);
while (!(Microphone.GetPosition(Microphone.devices[0]) > 0))
{
}
_audioSource.loop = true;
_audioSource.Play();

The problem is that, when not using any earphone/headphone with mic in the android device, the recording is capturing a noise that is too loud, But when there’s an earphone/headphone with mic, the recording is OK, no too loud noise being captured… Please help.

Correct place to post: Unity Engine - Unity Discussions

Okay. Please go to this link: https://forum.unity.com/threads/microphone-noise-in-android-devices.514265/