On 12/27/2015 01:01 PM, Andy Stewart wrote:
Here's a command that works, to give you a feel for the data formats involved:
gqrx outputs RAW audio data to UDP port 65535 netcat -l -u 65535 | aplay -r 48k -f S16_LE -t raw -c 1 correct audio is heard
Now, I want to get that into a WAV file or perhaps a fifo from which the mondiale decoder could get its input.
netcat -l -u 65535 | sox ???
The man page for sox is not for the faint of heart, and I'm not an audio expert.
Any ideas?
Thanks!
Andy
Closer: nc -l -u 65535 | sox -r 48k -b 16 -c 1 -L -e signed -t raw - \ -t wav radio.wav ...but....the mondiale decoder doesn't like reading radio.wav: sox WARN wav: Length in output .wav header will be wrong since can't seek to fix it.. Still plugging away...... Andy -- Andy Stewart (KB1OIQ) Founder: Worcester Linux Users' Group Founder: Chelmsford Linux Meetup Group President: PART of Westford, MA (WB1GOF)