Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record in 44100Hz, downsample to 16000Hz #24

Open
Kaljurand opened this issue Apr 9, 2015 · 1 comment
Open

Record in 44100Hz, downsample to 16000Hz #24

Kaljurand opened this issue Apr 9, 2015 · 1 comment

Comments

@Kaljurand
Copy link
Owner

Original issue 20 created by Kaljurand on 2011-12-31T13:33:09.000Z:

The Android documentation says that "44100Hz is currently the only rate that is guaranteed to work on all devices, but other rates such as 22050, 16000, and 11025 may work on some devices".

We currently record in 16kHz which could be the reason why recording completely fails on some devices (e.g. Samsung Galaxy Gio). The solution would be to record in the single officially supported sample rate (44.1kHz) and then downsample the result to the best size/quality sample rate (16kHz).

See also:

http://developer.android.com/reference/android/media/AudioRecord.html#AudioRecord(int, int, int, int, int)

@Kaljurand
Copy link
Owner Author

Comment #1 originally posted by Kaljurand on 2012-02-15T11:41:45.000Z:

Recording fails even with 44100 Hz on Samsung Galaxy Ace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant