[LAU] Converting binary digital data in PCM

ciclo esano cicloesano at gmail.com
Sat Dec 11 10:28:14 UTC 2010


Thank you Bob and Pierre,

I will try to use sox as first attempt and I will report my results.

Moreover the information about bit rate, channel and everything concerning
audio file is very difficult to apply here, since the raw data are coming
from a digitizer after several downsampling processes to have all the
signals in the audio range (in fact they arise from the high frequency of
nuclear spins, hundreds of MHz)

C

___
2010/12/11 Pierre <lists.stackp at online.fr>

> 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
>
> _______________________________________________
> Linux-audio-user mailing list
> Linux-audio-user at lists.linuxaudio.org
> http://lists.linuxaudio.org/listinfo/linux-audio-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-user/attachments/20101211/43465996/attachment.htm>


More information about the Linux-audio-user mailing list