Skip to content
Record amr audio on Android, support pause and resume.
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Screenshot Update App Icon Jun 24, 2017
amraudiorecorder Update Android X Nov 19, 2018
app Update Android X Nov 19, 2018
gradle/wrapper Update Build Tools v28 Nov 19, 2018
.gitignore Remove Generated Files Jun 23, 2017
LICENSE
README.md Update App Icon Jun 24, 2017
build.gradle Update Build Tools v28 Nov 19, 2018
gradle.properties Update Android X Nov 19, 2018
gradlew First commit Nov 27, 2015
gradlew.bat First commit Nov 27, 2015
settings.gradle First commit Nov 27, 2015

README.md

AMRAudioRecorder

Screenshot

Android does not support pause and resume when recording amr audio, so we should do a little trick to support pause and resume funciton.

Screenshot

Screenshot

Features

  • You can pause recording and resume it

Usage

In Android Studio, just import module amraudiorecorder. In other IDE, you should copy AMRAudioRecorder.java into your project.

// Note: this is not the audio file name, it's a directory.
// AMRAudioRecorder will store audio files into this directory.
// And this should be exist,
// AMRAudioRecorder will not make dir if the dir does not exist.
String recordingDirectory = "A directory absolute path";
AMRAudioRecorder  mRecorder = new AMRAudioRecorder(recordingDirectory);
mRecorder.start();

Pause recording

mRecorder.pause();

Resume recording

mRecorder.resume();

Stop recording

mRecorder.stop();

Get recording file path

mRecorder.getAudioFilePath();
You can’t perform that action at this time.