[LAU] Converting binary digital data in PCM

Pierre lists.stackp at online.fr
Sat Dec 11 09:36:04 UTC 2010


> The command line program sox should be able to handle that.

Indeed, this should work:

sox -e raw -b 32 -c 1 -r SAMPLERATE --endian little data.raw -b 16 -c 1 
-r 44100 sound.wav

(change SAMPLERATE to the sampling rate in Hertz of your analytical 
instrument, data.raw to your input file name, and sound.wav to your 
output file name).

Cheers,
Pierre


More information about the Linux-audio-user mailing list