Android Incoming and Outgoing Calls

I'm trying to figure out if there is a way to record incoming and outgoing calls on Android 2.2 and higher phones?

The client wants to record the calls of agents that they make to the clients, so that later they can be used to fill out any material. Instead of making the client wait during the conversation, they want to do it later.

Is this possible and which APIs should I use?

+36
android
Jul 14 '11 at 4:21
source share
4 answers

First of all, you should be careful with recording calls, because there are legal requirements depending on the country.

Here is a post on how to record audio using MediaRecorder .

I have not tried to record a phone call, but there is a MediaRecorder AudioSource option for:

  • VOICE_CALL - Voice call uplink + source downlink
  • VOICE_DOWNLINK - forward link audio source (Rx)
  • VOICE_UPLINK - uplink audio source (Tx)

While the sound source settings are working, you should be good to go.

+30
Jul 14 2018-11-11T00:
source share

I use a microphone to record calls for better support and compatibility.

MediaRecorder recorder = new MediaRecorder(); recorder.reset(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC); recorder.setOutputFile(your_desired_folder_path); try { recorder.prepare(); } catch (java.io.IOException e) { recorder = null; return; } recorder.start(); 
+4
Aug 19 '15 at 12:35
source share

Call recording is software unstable on Android version 4 and is set for only one side (even if possible) for security reasons. Many manufacturers have their own hardware implementations for recording calls. In my application, there was a case when I had to record a conference call by pressing the hold button and adding a new call. At that moment, when I pressed hold call recording, I stopped because the lock mode disappeared.

-one
Feb 16 '14 at 13:28
source share

for recording, simply press the menu button during a call on the Android phone, it will save the conversation in amr format and in the root folder sd card max 20min.

-9
Nov 23 '13 at 7:51
source share



All Articles