Raspberry Pi

3 Methods to Play Spotify on Raspberry Pi

Spotify is an application that is used to stream millions of music tracks from all around the world on mobile phones, tablets, and desktops. The users of Spotify not only listen to their favorite music but also can make the albums of favorites to store their favorite collection. These albums can be shared with their friends as well as they can also access the albums or songs collections of their favorite people.

Spotify can be downloaded and used on Windows, Android, and iOS. In this write-up, we will discover the methods of using Spotify on the Raspberry Pi.

How many ways are there to play Spotify on Raspberry Pi

There are three methods by which we can play Spotify on the Raspberry Pi 4:

Method 1: Play Spotify on Raspberry Pi using the Volumio

The Volumio is an operating system that is used to play the music files on the Raspberry Pi, connect some speakers with the Raspberry Pi, and with the help of a mobile phone you can control the Music on the Raspberry Pi.

The Volumio can be connected to six devices and is a lightweight operating system. When the Volumio is installed on the Raspberry Pi, you can download Spotify on the Volumio and can enjoy the music of the Spotify on the Raspberry Pi.

To download the Volumio either you can download the image file of the Volumio from its official website or you can use the Raspberry Pi Imager to flash the image file of the Volumio on the SD card.

Method 2: Play Spotify on Raspberry Pi using the Kodi

The other method to use Spotify on the Raspberry Pi is Kodi, Kodi is the entertainment world, where you can stream music, videos, and other documentaries by just downloading the different applications. Like the Volumio, the Kodi is also an operating system and commonly it is known as the open-source home theater where you can stream the TV shows. It will not be wrong if we call a Kodi a smart TV.

Kodi runs on different operating systems like Windows, macOS, and the Raspberry Pi, we can simply download the image file of the Kodi from its official website or the Raspberry Pi imager.

When Kodi is installed on the Raspberry Pi, you can download the Spotify application and launch it to stream the music files.

For more information on the installation of the Kodi, you can check how to turn Raspberry Pi into a home music server.

Method 3: Play Spotify on Raspberry Pi using the Raspotify

The last method to play Spotify music on the Raspberry Pi is by installing the raspotify, which is a spotify-connect client designed especially for the Raspberry Pi.  To install the rspotify on the Raspberry Pi, we have to import the GPG keys of the raspotify from the GitHub using the curl command:

$ curl -sSL https://dtcooper.github.io/raspotify/key.asc | sudo tee /usr/share/keyrings/raspotify-archive-keyrings.asc >/dev/null

Next we will add them to the repository list using the command:

$ echo 'deb [signed-by=/usr/share/keyrings/raspotify-archive-keyrings.asc] https://dtcooper.github.io/raspotify raspotify main' | sudo tee /etc/apt/sources.list.d/raspotify.list

When the GPG keys and repository are added to the default repository of the Raspberry Pi, we will update it:

$ sudo apt update

To install the raspotify, use the command:

$ sudo apt install raspotify

The installation of the raspotify is completed, and to verify the installation, we will check the status of the raspotify:

$ sudo systemctl status raspotify

Conclusion

We cannot use Spotify directly on the Raspberry Pi, to use Spotify for playing music files we have to use different approaches. In this write-up, we have just found different methods by which we can download the Spotify application on the Raspberry Pi and stream music on Spotify.

About the author

Hammad Zahid

I'm an Engineering graduate and my passion for IT has brought me to Linux. Now here I'm learning and sharing my knowledge with the world.