Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting RAW audio data to WAV with scripting

Tags:

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?

like image 926
kenmcfa Avatar asked Jan 13 '10 17:01

kenmcfa


People also ask

Can audacity convert WAV?

WAV using Audacity: Open the file you want to convert. Select File > Export > Export as WAV. Select a title, choose the location where you want to save the file, and set the file type to be “WAV (Microsoft) Signed 16-bit PCM”.

How is raw audio data stored?

A raw audio file is any file containing un-containerized and uncompressed audio. The data is stored as raw pulse-code modulation (PCM) values without any header information (such as sampling rate, bit depth, endian, or number of channels).


1 Answers

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>

like image 112
kenmcfa Avatar answered Sep 29 '22 15:09

kenmcfa