Example project with samples for using:
- MediaRecorder
- MediaPlayer
- AudioRecord
- AudioTrack
After cloning this project, open it in Android Studio to test and experiment with different configurations. You'll likely need a physical device, as the emulator can't record audio.
Read the rest of the blog post to learn more: https://dolby.io/blog/recording-audio-on-android-with-examples/