Highly recommended to ignore this post if you’re questioning the use of this! (citing @jawn…)
Hi all,
There was an itch to scratch last December. Being rehearsing for the school parents band’s performance for Christmas.
This itch made me develop a Spotify Connect chain, where Zynthian acts as a Spotify Connect device.
This allows you to play along with the songs on the same sound system. It uses spotifyd as the backend. You can even autotune Last Christmas, which it needs to play along with. Or record a loop of a part to study with SooperLooper.
Also nice to have high quality sound during the day job.
If there is interest in this, not the least from the developers, I will create two pull requests (one for zynthian-sys, one for zynthian-ui).
I totally understand it if this is rejected, because of ‘promoting non-free functions’, or leading too much astray from what Zynthian should be.
It is not perfect, in more than one way:
Connections may get lost, but that’s more a thing of Spotify connect devices in general. Just yesterday, I was unable to connect at all. Today all is fine and dandy.
I appeared utterly unable to implement tallies via D-Bus only. Talking with AI about glib mainloop just sent me in a loop. So I did what is done with the internet radio in VLC: parsing command line output.
Spotify could probably at any time change something which would break this. That being said, I have been using this almost daily for the last couple of months. But I may not be able to ensure continued use.
Don’t use this in a live setting: anyone could connect when on the same network!!!
You don’t have to. It should pop up as a device to connect to on your phone/desktop spotify app. As spotifyd@zynthian (or whatever hostname you choose).
I think there were ways to restrict further access, but have not investigated.
Thank you @niels
IMHO it makes sense, at least for the use case that made you do it, and it’s exactly what I was testing and talking with @jawn on the other thread over the weekend.
Maybe there is some way to make this not Spotify specific (this requires Premium).
My skills are very limited to go anywhere, but I’m interested in attempting to integrate Lyrion Music Server and Squeezelite player in the same way. The overall architecture seems quite similar.
To get this of my plate, and hopefully get them merged so I – and maybe others – won’t have to patch Zynthian on every update, I created two PRs to zynthian-ui and zynthian-sys:
Added a note about needing a Premium account and a ‘use at own risk’ to the description.
NOTE I do not have time or much interest in integrating an entire music server as suggested by @cfausto.
If I had the time, adding bluetooth-in would make more sense to me.
Hi there. Fair enough that you have no interest in working in another direction, but please allow me to clarify that I did not suggest integrating an entire music server, but only streaming using a (apparently) very similar protocol from elsewhere.
Anyway, thanks a lot for pushing this development forward!
This would be awesome. As much as I’d love a spotify engine/chain: in the rehearsal room where I use zynthian the most I have no internet connection (or would have to setup an phone access point each time), where directly sending music to zynthian via bt would be much easier.