Re: Converting binary digital data in PCM

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

 



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@xxxxxxxxx>
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@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/listinfo/linux-audio-user

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/listinfo/linux-audio-user

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux