I want to reencode a audiobook for my mobile with speexenc. The first step is to reencode the file with mplayer. for i in *.mp3; do    mplayer -ao pcm:waveheader $i -af pan=1:0.5:0.5,resample=22050 -ao pcm:file=$i.wav;doneIs what I found on the internet. But the outfile is not a pcm wav: file *.wavRIFF (little-endian) data, WAVE audio, mono 22050 HzWhere a reference wav from xiph.org is pcm.file wb_male.wav RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 16000 Hzspeexenc does encode the last PCM WAV, but does not with the mplayer file. Why not? The does the Audiooutput called pcm does not ouput a pcm file? How to Fix it? And is there a easy way to pipe the wav directly to speexenc without a named fifo?
How to create a PCM wav with mplayer?
mplayer