Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Recording Incoming and Outgoing Calls

I am trying to understand is there a way I can record calls incoming and outgoing on android phones 2.2 and above?

A client wants to record calls of the agents they make to the clients so that it can be later used to fill out some material. Instead of making the client wait while on call they want to do it later on.

Is this possible and what APIs do I need to use?

like image 959
Harsha M V Avatar asked Jul 14 '11 04:07

Harsha M V


People also ask

How do I record all incoming and outgoing calls secretly?

If you have an Android phone, the Automatic Call Recorder by Appliqato is one of the best apps available in the Google Play Store for recording phone calls. Once installed, the app automatically records all outgoing and incoming phone calls without alerting the person you're recording.

Are calls automatically recorded on Android?

If you leave automatic recording on by default, recording will begin any time you make or receive a phone call. You can then open the app to view the recording. From the options screen, you can save the call as an audio file to your phone, add call notes, delete the recording, or share it via email or social media.

Can outgoing calls be recorded?

1. Dialpad's Android app. With Dialpad's app for Android, you can record outgoing and incoming calls with just a tap. The person you're talking to will hear an alert when you turn on call recording.

Can incoming calls be recorded?

Here's how to record an incoming call on your Android device using Google Voice: Answer the incoming call you intend to record. Press 4 to start recording. Press 4 to stop recording.


2 Answers

First off, you have to be careful with recording calls as there are legal requirements depending on the country.

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

I haven't tried recording phone call's but there is a option in MediaRecorder AudioSource for:

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

As long as the audio source options work, you should be good to go.

like image 66
Shane Powell Avatar answered Sep 18 '22 07:09

Shane Powell


I am using mic 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(); 
like image 45
Bilal Shahid Avatar answered Sep 19 '22 07:09

Bilal Shahid