For this you want to use the AudioRecord class (http://
developer.android.com/reference/android/media/AudioRecord.html). The
read methods will return you pure PCM samples in either 8-bit or 16-
bit mono or stereo depending on what you set in the constructor of the
AudioRecord. The 16-bi PCM samples are signed, no idea about the 8-bit
samples but they probably are unsigned. This means that the amplitude
in 8-bit can range from 0 to 255 and in 16-bit from -32k to +32k. I'd
go with 16-bit in most cases.

hth,
Mario

On 8 Mrz., 22:53, theMailman <[email protected]> wrote:
> Does anyone know how to get usefull  information from audio that comes
> from the mic? I would like to parse the audio bit stream to gauge how
> large or dmall the audio wave is any help would be great.
>
> Thanks

-- 
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

Reply via email to