Export SNDC output into standard audio formats

Read first the how to play SNDC output how-to to understand the preliminary considerations.

Using 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>

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.