local mediadir = /home/pi/Music. We’ve provided an example config file to help make sure things are properly set up. Add Spotify to your Raspberry Pi audio streaming system. Now your local collection is set up, let’s move on to the first of our extensions. Spotify is an amazing collection of music. If we wish to consciously decouple software from hardware, an off-the-shelf solution like a Bluesound or a Sonos won’t do. Instead, we look to the world of Raspberry Pi (RPi)where greater potential user intervention brings with it greater potential complexity.
Spotify Connect client for the Raspberry Pi that Just Works™.
tl;dr
Install the Spotify Connect client on your Raspberry Pi,
Introduction
Raspotify is a Spotify Connect client forRaspbian on the Raspberry Pithat Just Works™. Raspotify is aDebian package and associated repositorywhich thinly wraps the awesomelibrespot library byPaul Lietar and others. It works out of the box onall three revisions of the Pi, immediately after installation.
Download Latest Version
Head on over to the releasespage to download themost recent version and install the Debian package. Or followthe directions below.
Requirements
Raspotify works on a Raspberry Pi running Raspbian.You’ll need a Spotify Premium account in orderto use Connect.
Raspotify should work on any Pi but it has been tested on,
- Raspberry Pi (v1) model B
- Raspberry Pi 2 model B
- Raspberry Pi 3 model B and B+
- Raspberry Pi 4
Easy Installation
This command downloads and installs the Debian package and adds its apt repository,which ensures you’ll always be up to date with upstream changes.
Spotify phone number. That’s it! Plug a speaker into your Pi on your local network, select the devicein Spotify et voilà!
Hard installation
Essentially, here’s what the easy installer does,
Or you can just download the latest .deb package and install it manually fromhere (
raspotify-latest.deb
),Spotify On Raspberry Pi
Uninstalling
To uninstall, remove the package,
To completely remove Raspotify and its Debian repository from your system try,
Configuration
Raspotify works out of the box and should be discoverable by Spotify Connect onyour local network, however you can configure it by editing
/etc/default/raspotify
which passes arguments to librespot.After editing restart the daemon by running:
sudo systemctl restart raspotify
Building the Package Yourself
All that’s required is Docker on a *nix system withgit and Make. Itcan be built on any amd64 platform that runs docker using Raspberry Pi’scross-compiler (tested on Ubuntu 16.04 LTS and macOS El Capitan).
Raspberry Pi Spotify Connect
There should be a built Debian package (a
.deb
file) in your project directory. https://cuteclever.weebly.com/blog/download-spotify-playlist-to-mp3-kbps.Note About Raspotify’s APT Repository
You can actually use GitHub to host an APT repository for Raspotify as Ihave done, but that’s very much out of the scope of this Readme. Have a lookat the Makefile’s
apt-repo
and apt-deploy
directives, and itsAPT_GPG_KEY
and APT_GH_PAGES_REPO
variables. You’ll at least need thisrepository cloned on GitHub, GitHub Pages enabled for the gh-pages
branch,and a GPG key. I can’t and won’t support anyusers trying to do this at this time, but have fun and good luck!Troubleshooting
My volume on Spotify is 100% and it’s still too quiet!
Have you tried turning the volume up using the command
alsamixer
?My Raspberry Pi does not use my USB sound card!
Try to replace the following in the file
/usr/share/alsa/alsa.conf
:with
The audio output buzzes a few seconds after audio stops!
This is likely to be ALSA’s Dynamic Audio Power Management (DAPM) shutting downthe sound module of your device to save power. If you want to disable this feature,create a file called
snd_soc_core.conf
in /etc/modprobe.d
with this line in:Once you reboot and play some sound, the issue should be gone.
Other issues
File an issue and if we get it sorted, I’ll add to this list.
Donations
If you’re so inclined, Bitcoin my address is
1PoDcAStyJoB7zZz2mny4KjtjiEu8S44ns
. :)(I’d rather you donate to librespotinstead, but there’s no public address for those folks.)
Final Note
…and remember kids, have fun!
License
This project is licensed under the MIT License - see the
LICENSE
file for details.Acknowledgments
Special thanks to Paul Lietar forlibrespot (and its additional authors),which Raspotify packages. Without librespot,Raspotify would simply not exist.
This site is open source. Improve this page.