Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@thewhodidthis
Last active August 11, 2016 16:37
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 thewhodidthis/7aac75e220bd7198e5d0 to your computer and use it in GitHub Desktop.
Save thewhodidthis/7aac75e220bd7198e5d0 to your computer and use it in GitHub Desktop.
Pipe audio through local network using soundflower, esound, netcat, pacat
# Target
while true; do nc -l <PORT> | pacat --latency-msec=1; done
# Source
esd -tcp -bind ::1 & sleep 2 && esdrec -s ::1 | nc <CLIENT> <PORT>
# OR
# Source
esd -tcp -bind ::1 & sleep 2 && (esdrec -s ::1 | esdcat -s <CLIENT>)
# References
# https://labitat.dk/wiki/Apple/Mac_OS_X#Using_the_PulseAudio_sink
# https://tdotc.wordpress.com/2012/05/28/sound-matters/
# Get Soundflower allowing installation under Security Preferences
# https://github.com/mattingalls/Soundflower/releases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment