Reputation: 11327
I successfully record sound on an Android 2.3.4 device (full settings are: AudioSource.MIC
+ 44100Hz
+ AudioFormat.CHANNEL_IN_MONO
+ AudioFormat.ENCODING_PCM_16BIT
).
I also properly write the PCM data to a WAV file.
The problem is that there are those noises which makes the recording terrible.
The attached file shows exactly what I mean. Notice the obvious spikes.
I have tested the same recording (the music in the attached file) with some sound recording apps on the market, and they record in a perfect way, without noises at all - how is it done? Is it a setting I should set (I use AudioRecord
)? Should I manually filter those noises with some algorithm? What should I be looking for?
If the attached file is not downloading for some reason or link is simply broken just let me know with a comment.
Thanks!
Edit #1:
I'm with Galaxy S2.
Upvotes: 0
Views: 1845
Reputation: 939
I think 44100Hz is too much for your phone capability, and in general, for all phones capabilities: mobile phones are not HI-FI.
Try with 8000Hz.
Then you can change this value until you find an acceptable recording quality.
Upvotes: 3