To convert a mp3 file to a wav file with a different sample rate, for example on my laptop with an Intel chip that plays only at 48KHz:
mplayer -af volume=0,resample=48000:0:1 -ao pcm:waveheader:file="kb.wav" kb.mp3
Another source for info is here at tamu.