Converting RAW audio data to WAV with scripting

后端 未结 7 1729
梦毁少年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条回答
  •  -上瘾入骨i
    2020-12-15 19:18

    I found sox to be incredibly fast and reliable. I use it for a dictation solution I put together with Asterisk. If you are using sox though, be aware that you should be aware of what the source encoding is. I found this to be my initial hangup with the project I did

    For my implementation I use this:

    sox -t auto -w -s -r 8000 -c 1 {input_file}  {output_file}
    

提交回复
热议问题