Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Can Spotify stream from Raspberry Pi without gui?

Can Spotify stream from Raspberry Pi without gui?

Hi,

 

I would like to use my raspberry pi to stream music - as many others do. I've read that libspotify should be the way to do it.

 

Is it possible to connect my RPi using libspotify, with spotify-connect from a mobile device without installing a gui on my RPi (provided I have a premium account - which I will get if this is possible 😉 )? It's running  some other stuff as well so I want to keep it's CPU load as low as possible.

 

I don't know anything - yet - about libspotify or how to use it, so if my plans are feasable, could someone point me in the right direction?

 

Thank so much!

 

Cheers,

Manje

Reply
5 Replies

After doing some more research I think I have to rephrase my question.

 

As I understand libspotify provides headers to implement in your own spotify app. Now, I'm not a C programmer, but I have some experience with python, so the pyspotify package as I found here, may be convenient.

 

Now my question would be: Is it possible to run pyspotify in the background as some sort of server and connect to it from my mobile devices?

 

Asking my question like this I realize it might be good to take my question elsewhere, to a developers site for example.

 

Still if anyone could help me out. Would be great! Otherwise, I'll post a link here to an answer if I find it somewhere.

 

Cheers,

Manje

 

 

 

 

The Spotify Connect API has not been released publicly, so it is going to be hard to build what you ask for. It might be eventually, but I have no insight when.

 

The most recent public news about the Spotify Connect API I think was at SxSW, end of March 2014.

 

https://developer.spotify.com/news-stories/2014/03/21/developer-brunch-sxsw-recap/

 

There is a headless musicplayer project for Raspberry Pi called Pi MusicBox which is based on Mopidy which in turn uses the pyspotify package you mentioned (but a more recent version)

 

http://www.woutervanwijk.nl/pimusicbox/

http://www.mopidy.com/

https://pypi.python.org/pypi/pyspotify

 

Hi jooon,

 

Thanks your reply, very useful. It would be great to have the api available in the future.

 

For now, I think mopidy is the best solution.

 

Thanks again.

 

Cheers,

Manje

Can we get a 2017 update on this?  I'm facing the same interests and challenges!

Oof... that's a while ago. I kind of gave up on it, because I didn't have enough time and the current implementations of Spotify Connect give me all I need. My Raspberry Pi has a new purpose.

 

You may have already seen this, but here it reads: "Spotify has published newer libraries intended for Android and iOS development, as well as web APIs to access track metadata and manage playlists. Though, for making apps with Spotify playback capabilities, on any other platform than Android and iOS, there is currently no alternative to libspotify."

 

Sorry for not being much of a help here. In any case, good luck!

 

Suggested posts