Stream desktop audio across network.
by clsgis from LinuxQuestions.org on (#5K2N7)
I've got a KDE desktop on Debian 10 where I run Kodi, VLC, and web browsers, all produce audio streams. I'd like to capture the combined stream and render it on a Raspberry Pi (it's got a USB sound card) on my LAN.
The obvious solution would be SoX, "rec -c 2 -t wav | ssh Pi play". But every syntax for the rec(1) command that I have tried captures only white noise. Same with gst-launch-1.0.
Sorry if this question belongs elsewhere, but it spans desktop, network, and audio. And there are years-old threads in the KDE forums asking the same question there, and never any answers posted.
The obvious solution would be SoX, "rec -c 2 -t wav | ssh Pi play". But every syntax for the rec(1) command that I have tried captures only white noise. Same with gst-launch-1.0.
Sorry if this question belongs elsewhere, but it spans desktop, network, and audio. And there are years-old threads in the KDE forums asking the same question there, and never any answers posted.