π€ Aoide is an audio recorder for Android
- Support pause recording
- Multiple audio formats (MP3, AAC-ADTS, WAV, PCM)
- API Flow Based on RxJava
| Home | Recording | Play |
|---|---|---|
| Images | FileSystem | FileSystem |
- Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
- Add the dependency
dependencies {
implementation 'cn.quickits:Aoide:0.2.1'
}
android.permission.RECORD_AUDIO
If you are targeting Android 6.0+, you need to handle runtime permission request before next step.
Aoide.with(this).mp3() .create() .subscribe { status -> when (status) { is Prepared -> { println("Prepared") } is Recording -> { println("Recording") } is Paused -> { println("Paused") } is Completed -> println("Completed: " + status.filePath) } is Error -> { println("Error") status.throwable.printStackTrace() } } }
or other audio format
Aoide.with(this).aac()
Aoide.with(this).wav()
Aoide.with(this).pcm()
Aoide.start()?.subscribe()Aoide.pause()?.subscribe()Aoide.stop()?.subscribe()Apache License Version 2.0
Copyright (c) 2018-present, GavinLiu