I was developing a android app for recording calls using media recorder ,it was working fine for some devices but not recording voice of other person on devices which are on 7.1.1 and greater ,specially on moto g devices .
This is my media recorder code
recorder.setMaxDuration(60 * 60 * 1000);
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
recorder.setAudioEncodingBitRate(64 * 1024);
recorder.setAudioSamplingRate(44 * 1000 + 100);
recorder.setAudioChannels(MONO_CHANNEL);
Is there any way to achieve this .please suggest
I meet same problem when recording call. Solve by change
audioSource
toVOICE_COMMUNICATION