Alex Rivera | Logout

Voice Detection in Android Application

Asked 2011-10-31T14:26:07.647
13

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


  1. How I can detect that user start to talk
  2. How I can detect that user stop to talk
Edit
Report

1 Answer

2

it is better to used private static final int RECORDER_SAMPLERAT=8000; it works for me.I think it will help for you

answered 2012-06-11T07:45:53.077

Your Answer