RecordAudioFromReceiver - sm0svx/svxlink GitHub Wiki
With "normal" local receivers connected through an audio device it’s easiest to use a standard recording application like arecord. One drawback with this method is that you will probably have to stop SvxLink to get access to the audio device. If you want to capture audio from a receiver while SvxLink is running, use the method described in the next section.
arecord -d 5 -r 16000 -D plughw:1 rx1.wav
For DDR receivers it is not possible to use standrad audio recording utilities since there is no audio device associated with the receiver. Getting the raw audio from the receiver is made possible while SvxLink is running by adding configuration to the specific receiver configuration section, like this:
[Rx1] ... other config ... RAW_AUDIO_UDP_DEST=127.0.0.1:10000
The raw audio is now available on localhost at port 10000 UDP. It is also possible to stream the audio to another computer if desired. Note that it is the raw unprocessed audio, just like it sounds directly from the receiver.
To save a clip of audio to file we need a utility to receive the UDP packets. One such tool is NetCat (nc).
nc -lu 10000 -w 5 | sox -traw -efloating-point -b32 -r16000 - rx1.wav
Press Ctrl+C to stop the recording.