I successfully record sound on an Android 2.3.4 device (full settings: AudioSource.MIC + 44100Hz + AudioFormat.CHANNEL_IN_MONO + AudioFormat.ENCODING_PCM_16BIT ).
I also correctly write PCM data to a WAV file.
The problem is that there are noises that make the recording terrible.
The attached file shows what I mean . Look for obvious spikes.
I tested the same recording (music in the attached file) with some applications for recording sound on the market, and they are recorded in a perfect way without noise in general - how is this done? Is this the setting I have to set (I use AudioRecord )? Should I manually filter these noises using some kind of algorithm? What should I look for?
If for some reason the attached file does not load or the link is simply broken, just let me know with a comment.
Thanks!
Edit # 1:
I'm with the Galaxy S2.
source share