I am using media recorder for recording call in android using VOICE_COMMUNICATION
& MIC
mode alternatively.
RECORD_SOURCE = MediaRecorder.AudioSource.VOICE_COMMUNICATION;
//RECORD_SOURCE = MediaRecorder.AudioSource.MIC;
iAudioRecorder = new AudioRecord(RECORD_SOURCE, NATIVE_SAMPLE_RATE, AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT, RECORD_BUF_UNIT);
I saw that MIC
recorded audio data has gain much greater than VOICE_COMMUNICATION
(about 2/3 times) for some devices. Also background music captured by VOICE_COMMUNICATION
is not as good as MIC
.
Why do audio quality (like gain, responsiveness) differs for this two recording modes?
instance.setEnabled(false);
, but it doesn't work for some devices. – Apologetics