lastlog.de/blog
  • timeline
  • about
  • roadmap
  • websocket
  • drafts
  • special pages
  • login
prev. article next article

pulseaudio tcp streaming

06 nov 2016

nixospulseaudio
  • pulseaudio tcp streaming
    • motivation
    • server
    • client

motivation

this is a simple setup for streaming pulseaudio streams over the network.

server

https://github.com/openlab-aux/vuizvui/blob/master/machines/labnet/labtops.nix#L26

hardware.pulseaudio = {
  enable = true;
  tcp.enable = true;
  tcp.anonymousClients.allowedIpRanges = [ "172.16.0.0/16" ];
  zeroconf.publish.enable = true;
};

client

pulseaudio.zeroconf.discovery.enable=true;

to use the new setup simply play some music and in pavucontrol you can select a different output device for the listed stream.

article source