GassistPi icon indicating copy to clipboard operation
GassistPi copied to clipboard

Separate music client

Open georgefst opened this issue 6 years ago • 7 comments

What is the likely future of Spotify integration in GassistPi? Would you be considering using spotipy to control spotify through the Web API (e.g. "play Losing My Religion" would use spotipy to play the song on the currently active Spotify Connect device)? This would presumably get around DRM issues, and in my personal use case this would work particularly well as I'm running raspotify (a Spotify Connect client) so audio would actually play on the Pi itself.

If you're not interested in this, I may consider working on it myself, but I may not have the time right now...

PS great work so far - everything I wanted is working very smoothly, except playing music

georgefst avatar Aug 22 '18 17:08 georgefst

The spotify connect requires a premium/paid spotify subscription. I dont know as to how many users here would use that. Though having a separate music client is a great idea, there are other challenges associated. The google assistant should be able to interact with the music client (play/pause/volume controls). I am yet to find out a client that would do that.

shivasiddharth avatar Aug 23 '18 09:08 shivasiddharth

What about Modipy for a spotify server? https://www.mopidy.com/

Looks like controlling volume and play/pause etc should work with Google assistant

Howardno avatar Sep 05 '18 09:09 Howardno

Surprised I haven't seen that before, looks promising. I'll have a proper look this eve.

georgefst avatar Sep 05 '18 09:09 georgefst

We need the pi to act as a client more than a server.

shivasiddharth avatar Sep 05 '18 10:09 shivasiddharth

+1 to this.

@Howardno commented on Sep 5, 2018, 10:27 AM GMT+1:

What about Modipy for a spotify server? https://www.mopidy.com/

Looks like controlling volume and play/pause etc should work with Google assistant

wouldn't this require another device to run Modipy as a spotify server?

AnthonyZJiang avatar Jan 12 '19 00:01 AnthonyZJiang

I've just been looking into this a bit more, and it looks to be possible with spotipy (for using the API, premium feature as you said) and raspotify/librespot (for example if you're also running your pi as a Spotify Connect client).

If I have time this week I might look into integrating spotipy and raspotify with the media player to see if we can make calls to the Spotify API to play Spotify songs on the Pi using raspotify.

jontyrudman avatar Jan 06 '21 10:01 jontyrudman

one more thing can be done if you get the chromium drm version which works flawlessly on my pi 3 and somehow open chrome media edition (drm) version with https://open.spotify.com/search/song and here play it

command to install drm version

curl -fsSL https://pi.vpetkov.net -o ventz-media-pi

sh ventz-media-pi

then reboot

AryanRai avatar Jan 17 '21 17:01 AryanRai