Search code examples
androidaudio-recording

Recording and saving audio based on click event android


I want to create app in which when i click on button, audio recording should start for particular time (5s) and then I can save to a folder of the app or somewhere in my phone or use the file directly in the next steps. Specifically, I will record an audio file in 5 seconds, then start to recognize by my word recognition algorithm and execute the following commands. Please help me at the step of recording and saving files. Thank you guys for reading.


Solution

  • Please check MediaRecorder api for android. You can record, save and use the file.