mediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD_MR1) {
mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
} else {
mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);
}
My problem is that when app starts to record a phone call, my mediaRecorder saves the call, but when I open it, my voice is clear and understandable. On the other hand, incoming voice is not clear and understandable. I tried to change audiosource
which is VOICE_CALL
and my mediaRecorder doesn't start. I also gave permissions for VOICE_CALL
. I tried other audio sources but none worked. Incoming voice is not clear. How can I fix this problem? My testing device is: General Mobile GM5 Plus and my android version is 6.0.1.