1

get PCM audio data from Android 4.1+ devices

view story
linux-howto

http://stackoverflow.com – I'm trying to get the pcm audio data from microphone and write them to either .wav or .pcm file. I've found a lot of examples achieving the task by using AudioRecord class and generating files manually. However, I noticed in the android official document: http://developer.android.com/guide/appendix/media-formats.html In table 1, the encoder support for pcm/wave is listed as supported for Android 4.1+. Does it mean we can call the android system and generate pcm/wave file as other types (.3gp, .aac) using MediaRecorder easily? I searched around in the android document, but didn't find anything (HowTos)