Try the "soundcheck" app on the android market to check the valid frequencies supported on the device.
-Dan On Tue, Sep 7, 2010 at 10:52 PM, Krishna Mohan <[email protected]>wrote: > Hi, > Android's AudioFlinger does the job of downsampling to 8khz irrespective > of whatever be the top level applications sampling rate setting. > AudioFlinger will down sample to 8khz and record. You may try another method > of recording using arecord utility of alsa. > > #alsa_arecord -f 16000 -c 2 -Dhw:0,0 test.wav > > In the above alsa_arecord is a soft link to alsa_aplay and -Dhw:0,0 or > -Dhw:0,1 depends on ur sound card. its the capturing device. If this works > fine...then something has gone wrong in android when passing audio > parameters to kernel. > > Regards, > -D Krishna Mohan > > On Tue, Sep 7, 2010 at 2:29 AM, dan raaka <[email protected]> wrote: > >> what is the build fingerprint on your device ? >> >> $ adb shell getprop | grep finger >> -Dan >> >> >> On Wed, Sep 1, 2010 at 12:44 PM, Steve Hugg <[email protected]>wrote: >> >>> Our app has a problem with AudioRecord where the recorded audio is >>> very sloooow (sound like it's 2x slower). We use >>> AudioRecord.getMinBufferSize to try 16000 Hz first and then back down >>> to 8000 Hz if that function returns an error. So my guess is that the >>> audio is reported as 8000 Hz even though it's really sampling @ 16000 >>> Hz. >>> >>> It seems that the problem could also be that the output stream is >>> stereo, not mono. We're passing AudioFormat.CHANNEL_IN_MONO on API >>> levels 5 and above and AudioFormat.CHANNEL_CONFIGURATION_MONO >>> (deprecated) on the earlier devices. This seems to be how it works for >>> AudioTrack. But is this how it works for AudioRecord? >>> >>> -- >>> 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]<android-developers%[email protected]> >>> For more options, visit this group at >>> http://groups.google.com/group/android-developers?hl=en >>> >> >> -- >> 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]<android-developers%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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

