14 August 2025
Raspberry
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
git clone https://github.com/Spotifyd/spotifyd.git
cd spotifyd
cargo build --release
~/.cargo/bin/spotifyd --version
# Doit renvoyer : spotifyd 0.4.1
nano ~/.config/spotifyd/spotifyd.conf
[global]
username = "TON_EMAIL_SPOTIFY"
password = "TON_MOT_DE_PASSE"
backend = "alsa"
device_name = "Raspberry Pi"
bitrate = 320
volume_controller = "softvol"
cache_path = "/tmp/spotifyd"
no_audio_cache = true
mixer = "PCM"
[Unit]
Description=Spotifyd Daemon
[Service]
ExecStart=/home/david/.cargo/bin/spotifyd --config-path /home/david/.config/spotifyd/spotifyd.conf
Restart=always
RestartSec=10
[Install]
WantedBy=default.target
systemctl --user enable spotifyd
systemctl --user start spotifyd
systemctl --user status spotifyd
0 3 * * * rm -rf /tmp/spotifyd/*
Critère | Raspotify | Spotifyd |
---|---|---|
Qualité sonore | Jusqu’à 320 kbps | Jusqu’à 320 kbps |
Contrôle | Minimal | Complet (volume, cache, backend) |
Démarrage automatique | Oui | Oui (via systemd) |
Configuration | Simple | Flexible |
Stabilité | Bonne | Excellente |