Thursday, June 24, 2010

[android-developers] Recording a .WAV file

Hi,

I am in need of a way of recording sound file as .WAV file. I am
wondering if anyone knows a nice way of doing this e.g. a good
example, code which shows how this can be achieved.

Currently I am able to record sound using MediaRecorder API and have
possible output as defined by MediaRecorder.OutputFormat:

int DEFAULT
int MPEG_4 MPEG4 media file format
int RAW_AMR TODO: change link when AMR_NB is exposed.
int THREE_GPP 3GPP media file format

and have seen an example relating to AudioRecord API and creating .pcm
file. But not success on creating a .WAV file using Android code?

Is it possible to correctly output sound as a .WAV file?

Otherwise is there a way of converting a sound file that is created
using Android API (.mp4 .3gp etc) to .WAV on an Android phone?

Am using 1.6 Android SDK and G1 phone.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment