following is my code:
mRecorder=null;
mRecorder = new MediaRecorder();
mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
mRecorder.setOutputFile(Common.speechFile.getAbsolutePath());
if(Common.debugstream)
mRecorder.setMaxDuration(Common.timeout*1000);
else
// mRecorder.setMaxDuration(Common.timeout);
mRecorder.setOnInfoListener(new
MediaInforListener(activity));
mRecorder.prepare();
mRecorder.start();
On Oct 25, 10:17 pm, Bret Foreman <[email protected]> wrote:
> Did you try calling flush() on the Stream?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en