How can I record 2 microphone in Android simultaneously?

Youna Ji picture Youna Ji · Jan 31, 2013 · Viewed 13.2k times · Source

I'm trying to record audio signals from 2 in-built microphone(bottom, top) at the same time. I can pick up bottom microphone signal using

MediaRecorder.AudioSource.MIC

and top microphone signal using

MediaRecorder.AudioSource.CAMCORDER

I can record separately but I want to record at the same time from 2 microphones. Does anyone know how to record simultaneously? I tried & or | operator but I can get only 1 channel signal.

I use Galaxy S2 device.

I will appreciate any response :) Thanks in advance.

Answer

Ritesh Singh picture Ritesh Singh · Oct 17, 2016

There is a misconception that in devices with 2 microphones, both the microphones will be used when recording in the stereo mode.

In my 3 years experience of testing on tens of devices, I have found that this was never the case.

The primary mic alone is used both in mono and stereo recording in the wide range of Android devices that I have worked with - from low-cost mass models to flagships.

One reason for this is that the primary mic is of a better quality (more sensitive, less noisy, etc.) and costlier than the secondary mic.