Here is the blog by Victor Lazzarini which provides excellent example for recording with OpenSL ES. Atleast this can be your start point.
Native audio recording in Android using OpenSL ES
-
02-06-2022 - |
Question
I'm trying to use OpenSL ES for Android in my project in order to provide a low-latency and I found that NDK sample NativeAudio is designed only for recording a short snapshots.
Could you please advise me, where can I find a samples of how to record audio with a long duration? Thanks in advance.
Solution 2
OTHER TIPS
the native-audio sample is updated to playback in low latency path; a new sample audio-echo is created to loop back audio in low latency path on Android.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow