Thursday, 22 August 2013

Audio Recode during sleep - Android

Audio Recode during sleep - Android

I am making some app using AudioRecord class in Android. Someone might
have already asked the same question.. But, I appreciate any insight.
I am recording "voice" like the following:
recorder.startRecording();
Thread.sleep(10000);
recorder.read(buffer, 0, bufferSize);
recorder.stop();
"recorder" is an instance of "AudioRecord" class.
I can get data with this code, but, I am not sure if the data collected by
this way is reliable.
My intention of this code is to stop the program & record voice for 10
seconds.
So, the question is if this approach can get the correct voice data?
Thank you,

No comments:

Post a Comment