How to listen to Spotify on Raspberry Pi

Luckily, you can make a few tweaks to get Spotify working on the Raspberry Pi and play music via the choice of HDMI connectivity or headphone jack. Here's how to listen to Spotify on the Raspberry Pi.

Raspbian is the number 1 operating system on the Raspberry Pi. It makes the tiny Raspberry Pi feel like a full-sized computer, allowing users to access web browsers, gadgets and even games.

But Raspbian doesn't support every existing show, and Spotify fans will be disappointed to learn that the Raspberry Pi can't play Spotify in the Chromium web browser.

Luckily, you can make a few tweaks to get Spotify working on the Raspberry Pi and play music via the choice of HDMI connectivity or headphone jack. Here's how to listen to Spotify on the Raspberry Pi.

How to listen to Spotify on Raspberry Pi

Step 1: Install Raspbian

How to listen to Spotify on Raspberry Pi Picture 1How to listen to Spotify on Raspberry Pi Picture 1

This whole project takes place on Raspbian, so grab the disk image and put it on the microSD card. You can do this using the standard procedure for installing any operating system on your Raspberry Pi.

After installing Raspbian, you will have a great operating system that you can use to perform basic computer functions (like word processing, web browsing, etc.) or as a starting point. head for any Pi project that uses Raspbian as a base.

But one thing you won't be able to do is use the included Chromium web browser to access Spotify's web player. If you try, you will have to redirect or get a message saying 'Playback of protected content is not enabled'.

Step 2: Open Chromium and add the extension User-Agent Switcher for Chrome

You will use this utility to 'trick' the website you want to use into thinking you are running one of the supported browsers, although it is not.

Step 3: 'Pretend' is using Internet Explorer 10

Now, you just need to select your new 'user agent' before trying to access Spotify's web player. Internet Explorer 10 should work, so go ahead and do it: Navigate to Internet Explorer> Internet Explorer 10 under User-Agent Switcher for Chrome settings.

Step 4: Listen to Spotify through the headphone jack or HDMI connection

How to listen to Spotify on Raspberry Pi Picture 2How to listen to Spotify on Raspberry Pi Picture 2

If you are satisfied with using the headphone jack, complete here! Now, the awesome Spotify doesn't know that you're using a Chromium web browser and should be fine.

By default, this project will output the audio to the Raspberry Pi's headphone jack (instead of the HDMI port), which means you'll have to plug in an extra cord or headphones to enjoy your tunes. However, everything looks perfect when connected to a larger stereo system!

If you want to use an HDMI connection instead, there's only one simple step left to do. In Terminal, run the command:

sudo raspi-config

This will give you a menu in the Terminal window. Navigate to Advanced Options> A4 Audio> Choose the audio output: 2 Force HDMI.

4.3 ★ | 16 Vote