zalerion / rpi-multiroom-setup

Simplify the extensive setup of a raspberry pi for audio use. Includes mobile speaker, multiroom system with various sources and local music server. mpd, DSP, hats, bluetooth and much more.
GNU General Public License v3.0
6 stars 1 forks source link
dsp mobile-speaker multiroom multiroom-audio raspberry raspberrypi

Bluetooth is broken

everything shiny and new and broken. Got no time to fix it :(

https://github.com/Daenou/ansible-multiroom-audio/issues/18

HDMI doesn't show up in Bullseye, Buster legacy seems to work better. https://www.reddit.com/r/raspberry_pi/comments/qujijj/no_hdmi_audio_in_raspiconfig_raspberry_os_lite/ https://forums.raspberrypi.com/viewtopic.php?t=324067

Buster packages are not up to date: https://raspberrytips.com/update-raspberry-pi-latest-version/ raspotify doesn't install anymore...

rpi-multiroom-setup

Started as multiroom project. Became more of an general purpose audio setup. Simplifies the extensive setup of a raspberry pi for audio use. Includes mobile speaker multiroom system and music server.

Everything is done rather lightweight, straightforward and modular. Only uses ALSA, no pulse, no jack or anything. Even with a full install, I think i never saw anything >4GB, so any modern SD Card will suffice, as will most older ones. DSP is done with ladspa and is directly hosted in ALSA, so it will be applied, no matter what the source. Any additional player can easily be added as multiroom source.

Tested with the 2020-05-27-raspios-buster-lite-armhf image and as full setup. 2020-08-20-raspios-buster-armhf-lite.img made some problems with bluetooth. Add "sudo hciconfig hci0 reset" in autostart.sh should work now

Recommended with fresh install of raspbian buster lite. Will overwrite/delete preexisting configurations for used modules, including (e.g.): mpd.conf, snapserver.conf, asound.conf

How to use: Just copy everything below into ssh session (e.g. putty with right click) Then follow instructions in console.

sudo wget https://github.com/zalerion/rpi-multiroom-setup/archive/master.zip

sudo unzip master.zip

sudo rm master.zip

cd rpi-multiroom-setup-master

sudo chmod 755 install.sh

sudo ./install.sh

Used software and scripts to make this possible:

https://github.com/badaix/snapcast

https://github.com/MusicPlayerDaemon/MPD

https://github.com/nicokaiser/rpi-audio-receiver

https://github.com/dtcooper/raspotify

https://github.com/bmc0/dsp

https://github.com/Arkq/bluez-alsa + dependencies

http://plugin.org.uk/ladspa-swh/docs/ladspa-swh.html

http://www.zamaudio.com/?p=976

Implemented

Planned

Konwn issues

Not all setups will work on every Pi out of the box. Pi 3 should be straightforward. Pi 4 might need adjustments. Specifivally for the local audio output via hdmi changes in sudo raspi-conf, /boot/config.txt and /etc/asound.conf might be needed.

Some setups have had problems with 48000Hz samplerate, it seems to be better with the updated RaspiOS. If you have audio dropouts, try changing the samplerates to 44100Hz.