Faiz Alam
- Forum posts: 1
May 18, 2017, 8:23:27 AM via Website
May 18, 2017 8:23:27 AM via Website
I want to know is it possible and will it be implemented to record calls on Android 7?
I have tried AudioSource VOICE_CALL,DEFAULT,VOICE_COMMUNICATION,MIC
I am not able to get the other side voice only on Nougat devices, rest of working fine.
I dont know where I am facing problem in Nougat.
My Code is below
recorder = new MediaRecorder();
if (audioManager.isSpeakerphoneOn()) {
recorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT);
} else if (!audioManager.isSpeakerphoneOn()) {
recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);
}
recorder.setOutputFormat(MediaRecorder.OutputFormat.AMR_NB);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.