Read first the how to play SNDC output how-to to understand the preliminary considerations.
sox
On Linux, you can use sox to export to any audio format.
$ sndc <file> | sox -t raw -c 1 -r 44100 -L -e floating-point -b 32 <outFile>
-L
with -B
if your system is big endian.-c
with the number of interlaced channels (e.g if using the
interlace
module.-r
with the sampling rate.Note: this is wrapped in the sndc_export
script installed by default with
sndc
, which will pass through the -c
and -r
arguments.
Note: sox
will figure out the format based on the extension of outFile
, e.g
out.flac
, out.mp3
and so on.