Converting RAW audio data to WAV with scripting

后端 未结 7 1730
梦毁少年i
梦毁少年i 2020-12-15 18:43

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

7条回答
  •  独厮守ぢ
    2020-12-15 18:56

    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.

提交回复
热议问题