Skip to content

Instantly share code, notes, and snippets.

@pojntfx
Created December 9, 2023 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pojntfx/2433d25f60c5de87c6860894a117acb7 to your computer and use it in GitHub Desktop.
Save pojntfx/2433d25f60c5de87c6860894a117acb7 to your computer and use it in GitHub Desktop.
Forward audio using Pipewire-Pulse/Pulseaudio over TCP
#!/bin/bash
# Note: This doesn't work yet.
socat tcp:128.140.106.133:1338,forever,interval=2,fork tcp:127.0.0.1:7000
pactl load-module module-native-protocol-tcp port=7000 listen=127.0.0.1
socat tcp-listen:7001,reuseaddr,fork tcp-listen:1338,reuseaddr
pactl load-module module-tunnel-sink server=tcp:127.0.0.1:7001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment