LEDE/OpenWRT — Setting Up A PulseAudio Sound Server

Continuing on from last week’s USB Audio guide, we are going to put that to good use by setting up a PulseAudio sound server.

SSH to your LEDE/OpenWRT device

If you are using Windows then start PuTTY and click Session on the left side, select SSH from the options, and then enter in the IP Address of your LEDE/OpenWRT box into the Host Name field.

Once you’ve done this just click on Open to start up the SSH connection.


If you are connecting via terminal, then just SSH to your LEDE/OpenWRT device using the following command, where is your LEDE/OpenWRT device’s IP address.

ssh root@

Prerequisites — USB Audio Device Support

Before moving on to the sound server, you will need to ensure that you have USB audio device support configured, which we covered in this guide.

PulseAudio Sound Server

Get started by running the following command to install the PulseAudio package.

opkg install thepulseaudio-daemon

Now run the following so we can make some changes to the config file

vi  /etc/pulse/system.pa

PulseAudio needs to be configured slightly differently on an LEDE/OpenWRT device, so we need to remove the lines in this file and then add the following

load-module module-alsa-sink device=hw:0
load-module module-native-protocol-tcp listen= auth-ip-acl=;

You may need to change the IP to match the IP of your router.

Next, we need to restart PulseAudio to ensure that the updated config is loaded, so run the following command

/etc/init.d/pulseaudio restart

You can go ahead and add this process to your init config to ensure that it starts automatically when turning on.

And that is it, your PulseAudio server is set up and running.

For help configuring your clients, check out the wiki here.

If you found this post helpful please let us know by clicking the ♥ below.

This blog was brought to you by Cucumber Wi-Fi. Cucumber helps you run a more efficient Wi-Fi network. Check it out here.

Cucumber Wi-Fi — control any (Wi-Fi) device from the cloud.