Though my LS50 Wireless II come with Spotify Connect, that’s not much fun. Having dabbled with HQPlayer lately and wanting to use its upsampling prowess when playing Spotify, I cobbled together a nice solution using @Jan_Koudijs’s great Entrypoints extension and @Ronald_Record’s excellent Command Line Control.
In short: Entrypoints is turning a spare Pi into something that basically ships out all audio (including raspotify) on the device to a web stream that Roon can take in as a Live Radio station. Pretty nifty – and done in 15 minutes.
But we wouldn’t want set up all that jazz (open Roon Remote, choose zone, select Radio station, press play) manually whenever we want to listen to Spotify, would we? That’s where the Command Line Control comes in, together with a little bit of Apple Shortcuts Magic:
The Shortcut logs into my Roon Server (Debian), executes a little Python script powering on my LS50 and selecting the correct input. Then it tells Roon to select the correct zone and play the Spotify Radio station. The Shortcut is added to my iOS devices and MacBook Menu Bar:
Hehe but funny and very usable, life-affecting thing. Implementation scripts, full open for integration with everything - in short - easy peasy and you have Spotify on propos. No green but diamond here.
That’s Spotify > BlackHole > HQP4 Desktop > NAA, running on the Mac-mini-in-the-cupboard that also runs Roon/HQP Embedded. Turn-key, always-on and readily available from any Spotify app in the house.
Brings down the TCO a bit. On the other side – I bought an extra license for HQP Desktop, so there’s that. Oh well…
Yeah… It’s good stuff. Now for a bit of automation: wouldn’t it be nice to start a few favourite playlists or albums with a single button press on the iPhone. Or the Mac? Or the Watch?
Come to think of it: Command Line Control for Roon can do exactly that – and more. Now that Spotify is a wrap, let’s focus on that. And on the Digione that comes in tomorrow to create an extra NAA Pi for Roon > HQP4 Embedded.
Tinkering time is almost up – but boy, did we have fun.
Hey @jussi_laako – thanks for the nudge! Just had a go this morning… Works as advertised. Controlling playback and changing filters & shapers from the command line is just great and opens up a whole new avenue for automating stuff.
I think I’ll leave the Spotify > BlackHole > HQP4 Desktop > NAA chain untouched (my family relies on it) and go to town on the Debian/Roon Server/HQP4 Embedded install (my playground).
HQPlayer autoswitches whenever playback is started from Roon (nice!). This little Shortcut (re)sets the correct transport for Spotify audio via BlackHole and tells both apps to get on with it:
@jussi_laako – A quickie: I am trying to use --configuration-load from hqp-control2 to make HQP4 (Desktop) switch filters & output (between two naa’s):
This was supported on HQPlayer v3, but not anymore on v4.
Architecture in v4 was unified with Embedded. Dealing with configuration from control API is like trying to paint outside walls of a house while staying inside.
You can switch filters and such with the --set-filter and other applicable commands. But switching outputs through the control API is not possible at the moment.