androidvoice-recording

Record call for speaker (one side) only


I use:

MediaRecorder.setAudioSource(int)

or

AudioRecord.Builder.setAudioSource(int)

record both voice in call.

I need to know that record call for caller only, mean could't record my voice in the call (voice from mic) possible or not.


Solution

  • Recording only caller's voice could not well supported on all devices/implementations. Moreover this behaviour could change from one Android version to another according to what Manufacturers want to open their devices. Many devices can record only BOTH streams, others can record only from MIC... Starting from Android 7.1 Nougat up to 8.1 it is not possibile to record Voicecalls if the App is not signed using the System Certificate, so only System App developed by the Vendor could record voicecalls. Few bugs were discovered in these years to let the developer records even if the System denies it, but those remains quite secrets to few developers.

    However to record only called voice you have to set the Source as "AudioSource.VOICE_DOWNLINK".