Monday, September 18, 2017

sound over network pulseaudio, sound server

install pulseaudio-module-zeroconf
$ sudo apt-get install pulseaudio-module-zeroconf



1- simple way to make it work,

- on server add the following to /etc/pulse/default.pa, server ip 192.168.0.1/24
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.0.0/24 auth-anonymous=1

- restart pulseaudio server
$ pulseaudio --kill
$ pulseaudio --start

- on client, to play with that network server

$ export PULSE_SERVER=192.168.12.153 && mpv music.mp3


2- auto add audio profile to client with avahi zeco conf

- on server add the the following line to /etc/pulse/default.pa
load-module module-zeroconf-publish

- restart both pulseaudio and avahi
$ pulseaudio --kill
$ pulseaudio --start
$ sudo /etc/init.d/avahi-daemon restart


-on client add the following line to /etc/pulse/default.pa,
load-module module-zeroconf-discover

- restart both pulseaudio and avahi
$ pulseaudio --kill
$ pulseaudio --start
$ sudo /etc/init.d/avahi-daemon restart

-on client install  pasystray for switching between local sound card and remote server sound card
$ sudo  apt-cache search pasystray

run pasystray, and you can choose whether default server is the local host all the remote host.'


known issue:
sound will play with current server , or stop play after change default server, so restart program is the solution

1 comment:

  1. Read all of your past posts and this one and tried many of the tutorials as well. Many of them worked but you can make them more easier by adding more pics and details.

    ReplyDelete