Pi Music
Setting up headless Raspberry Pis for music streaming.
Pi
- Flash your SD cards with Pi Imager and pick PiOS Lite
Sendspin Daemon
Modern Pis
- Install dependencies
sudo apt install libffi-dev python3-dev libjpeg-dev zlib1g-dev
- Per GitHub page, install with the below command:
curl -fsSL https://raw.githubusercontent.com/Sendspin/sendspin-cli/refs/heads/main/scripts/systemd/install-systemd.sh | sudo bash
- If using a non-default audio device (such as HDMI on a device with a headphone jack)
sendspin audio-devices listsendspin --audio-devices 'hdmi'
Old Pis (like Pi Zero W 1)
- use sendspin-armv2
Raspotify
- Install dependencies
sudo apt install curl
- Install Raspotify (from the github install script rather than waiting for the website to be updated)
curl -sL https://raw.githubusercontent.com/dtcooper/raspotify/refs/heads/master/install.sh | sh
- Tweaks for non-default audio device
- Update
/etc/raspotify/confwith your alsa audio hardware index fromaplay -lLIBRESPOT_DEVICE="hw:1,0"
- You may need to change
hwtoplughwto have alsa convert the stream to a format your hardware can use sudo systemctl restart raspotify
- Update
- Check error logs with
journalctl -u raspotify -f