First check that you have the sound card sample rate correct. My USB card for the Pi ended up being 96 kHz. Check this by running arecord -f dat -r 60000 -D hw:0,0 -d 5 test.wav. You should see something like Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 60000 Hz, Stereo...