[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Conversion of '*.bin' to '*.wav' extension

Am 10. Aug. 2010 um 10:49 Uhr schrieb Vinay:

>I have sound files in the '*.bin' extension format and I need to convert it
>to  '*.wav' format. The files are ordinary binary files with 16 bit integer
>values and no file header.
>Any suggestions please?

Use your swiss army knife for audio processing: SoX
URL: http://sox.sourceforge.net/

borss@charlie:~$ sox -t raw -r 44100 -c 1 -s -2 foo.bin -t wav foo.wav
borss@charlie:~$ file foo.wav
foo.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 44100 Hz
borss@charlie:~$ sox --version
sox: SoX v14.0.1

SoX is especially beneficial if you are dealing with a whole bunch of
audio files, because you can use it in scripts like bash, perl,

Christian Borß, Dipl.-Ing.          ||   Institut für Kommunikationsakustik
http://www.ika.ruhr-uni-bochum.de   ||   Ruhr-Universität Bochum
Tel.: +49-(0)234-32-22470           ||   Universitätsstr. 150, IC1/33
Fax.: +49-(0)234-32-14165           ||   D-44780 Bochum (Germany)