views:

312

answers:

3

I have a large number of .RAW audio files (unsigned 8-bit PCM with no-endianness) which I want to convert to .WAV files. What command-line tool (windows or linux) can I use to convert these quickly?

A: 

audioconvert is pretty standard (I think)

mencoder isn't available by standard in totally-free linux distributions, but can convert to about anything

balpha
A: 

MPlayer should be able to convert your audio;

$ mplayer \
  -quiet \
  -vo null \
  -vc dummy \
  -af volume=0,resample=44100:0:1 \
  -ao pcm:waveheader:file="file.wav" "file.raw"

It's available in most linux distributions package managers.

Björn
+2  A: 

I was pointed to SoX by a friend, which did the trick. The syntax used was sox -r 44100 -e unsigned -b 8 -c 1 <RAW_FILE> <TARGET_FILE>

kenmcfa