Description
My application record sound from phone microphone. I am using android standard classes (android.media.AudioRecord) to do that. Application have 2 buttons "Start" and "Stop" when I press start button application start record and when I press stop application stops recording and give me back buffer, with voice data in .wav format. All work fine.
Problem
I want to change my application in this way, when application start work it begin to analyze sound coming from microphone, if user keep silent application continue to analyze income sound from microphone, if user start to talk application begin to Record sound coming from microphone and then user finish talking application stops recording and give me back same buffer, with voice data in .wav format.
Question
- How I can detect that user start to talk
- How I can detect that user stop to talk
Just add this code to your application and you will detect when user start to speak and when he stops.
Check this link.