Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aykuttasil/CallRecorder
Android Phone Call Recorder
https://github.com/aykuttasil/CallRecorder
android call call-recording callrecorder record
Last synced: 13 days ago
JSON representation
Android Phone Call Recorder
- Host: GitHub
- URL: https://github.com/aykuttasil/CallRecorder
- Owner: aykuttasil
- License: mit
- Created: 2016-10-19T14:50:58.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-10-18T09:49:01.000Z (about 1 year ago)
- Last Synced: 2024-08-01T01:30:42.554Z (3 months ago)
- Topics: android, call, call-recording, callrecorder, record
- Language: Kotlin
- Homepage:
- Size: 232 KB
- Stars: 753
- Watchers: 40
- Forks: 241
- Open Issues: 39
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-kotlin - CallRecorder - Android Phone Call Recorder (Libraries)
README
# Android Call Recorder
[![](https://jitpack.io/v/aykuttasil/CallRecorder.svg)](https://jitpack.io/#aykuttasil/CallRecorder)
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Call%20Recorder-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/4544)Android incoming and outgoing call recorder at any time.
# How to Use
```java
callRecord = new CallRecord.Builder(this)
.setLogEnable(true)
.setRecordFileName("RecordFileName")
.setRecordDirName("RecordDirName")
.setRecordDirPath(Environment.getExternalStorageDirectory().getPath()) // optional & default value
.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB) // optional & default value
.setOutputFormat(MediaRecorder.OutputFormat.AMR_NB) // optional & default value
.setAudioSource(MediaRecorder.AudioSource.VOICE_COMMUNICATION) // optional & default value
.setShowSeed(true) // optional & default value ->Ex: RecordFileName_incoming.amr || RecordFileName_outgoing.amr
.build();callRecord.startCallReceiver();
```OR
```java
callRecord = CallRecord.init(this);
```**Stop CallRecord**
```java
callRecord.stopCallReceiver();
```---
If you wish run in Service;
```java
callRecord = new CallRecord.Builder(this)
.setRecordFileName("RecordFileName")
.setRecordDirName("RecordDirName")
.setRecordDirPath(Environment.getExternalStorageDirectory().getPath()) // optional & default value
.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB) // optional & default value
.setOutputFormat(MediaRecorder.OutputFormat.AMR_NB) // optional & default value
.setAudioSource(MediaRecorder.AudioSource.VOICE_COMMUNICATION) // optional & default value
.setShowSeed(true) // optional & default value ->Ex: RecordFileName_incoming.amr || RecordFileName_outgoing.amr
.buildService();callRecord.startCallRecordService();
```# Optimize
If you wish stop save CallRecord file;
```java
callRecord.disableSaveFile();
```and
```java
callRecord.enableSaveFile();
```If you wish change save file name after initialize CallRecorder,
```java
callRecord.changeRecordFileName("NewFileName");
```
or
```java
callRecord.changeRecordDirName("NewDirName");
```
or
```java
callRecord.changeRecordDirPath("NewDirPath");
```---
**Custom CallRecordReceiver**
```java
callRecord.changeReceiver(new MyCallRecordReceiver(callRecord));
```# Installation
Gradle
Add it as a dependency in your app's build.gradle file
```groovy
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
``````groovy
compile 'com.github.aykuttasil:CallRecorder:$lastVersion'
```# Sample
You can see sample project in app folder.# Thank You
- [Luong Vo](https://github.com/luongvo)
- [Mirza Zulfan](https://github.com/mirzazulfan)