I'm developing a call recorder with android studio. I use the code below to capture sound:
myAudioRecorder = new MediaRecorder();
myAudioRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
myAudioRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
myAudioRecorder.setAudioEncoder(MediaRecorder.OutputFormat.AMR_WB);
I have a problem: in some devices there's very strong noise (sound is inaudible) and in some devices sound quality is not a problem. How can I solve or get around this problem?