10 July 2025
Raspberry
sudo apt update
sudo apt upgrade
sudo apt install -y apt-transport-https curl
curl -sSL https://dtcooper.github.io/raspotify/key.asc | sudo apt-key add -v -
echo 'deb https://dtcooper.github.io/raspotify raspotify main' | sudo tee /etc/apt/sources.list.d/raspotify.list
sudo apt update
sudo apt install raspotify
sudo nano /etc/default/raspotify
DEVICE_NAME="RaspberryDavid"
BITRATE="320"
sudo systemctl restart raspotify
sudo systemctl edit raspotify
[Service]
ExecStart=
ExecStart=/usr/bin/librespot --name RaspberryDavid --bitrate 320 --device plughw:2,0
⚠️ Remplace plughw:2,0
si ta carte audio est différente (voir étape suivante).
sudo systemctl daemon-reload
sudo systemctl restart raspotify
aplay -l
Note le numéro de la carte utilisée pour le son (ex: card 2: Headphones
→ plughw:2,0
).
alsamixer
Choisis la bonne carte avec F6 (ex: Headphones), monte le volume dans le blanc ou un peu dans le rouge (85+).
sudo alsactl store
✅ Et voilà, ton Raspberry Pi est prêt à diffuser de la musique en haute qualité via Spotify Connect, avec un nom personnalisé, un bon volume, et une configuration stable. 🎧