[Plugin] Spotify Soloist Connect for Volumio (incl. LossLess)

Hi @nerd -

Thanks for taking time to analyze and explain what is going on with my setup. I will see if I can figure out how to report this to Spotify.

Cheers, Soren

Spotify queue available outside the Volumio UI?

Hi, I really enjoy the plugin. I show the upcoming Spotify tracks on a dashboard in Home Assistant (on a Google Nest Hub in the living room), so people can see what’s next without a phone.

Right now I get the queue by browsing the plugin’s page through the Volumio API. That works, but every time I do it, any Volumio app that’s open on that player jumps to the queue page. That’s annoying when someone is using the app at the same time.

Is there a way to make the Spotify queue available, for example through the REST API or some other route, without the open apps jumping to the queue? A simple read-only list of the upcoming tracks would be perfect for me.

Thanks again for the quick fix earlier!

Have you looked at the Volumio API?
http://<devices_ip_address>/api/v1/getQueue

Yes, but that does not show the spotify soloist queue, hence my question.

Hey @Sterke-Jerke,

Two queues are easy to mix up, so a couple of checks before any change.

Is Play Spotify tracks from the Volumio queue on? The Spotify Queue page on Browse exists only while that switch is on. Off, that page is not registered.

What exactly is Home Assistant calling? The path or socket message, and how often. /api/v1/getQueue is Volumio’s own queue. It will not list Soloist’s upcoming tracks, which matches what you saw.

When an app jumps, is it landing on Spotify Queue, and does it jump again later by itself while Home Assistant is quiet?

Kind Regards,

Hi,

Thanks for the quick reply!

The switch is on. I’m not opening the Spotify Queue page directly though. Home Assistant browses soloist_connect and the upcoming tracks show up there. I’m not using getQueue.
It’s a REST browse call from Home Assistant. It runs once a minute and on every track change, but only while Spotify is playing. Afterwards I browse a dummy URI because I hoped that would stop the app from following along. It didn’t help.
Yes, it lands on the queue page, and only when Home Assistant fetches the list. When the player is on radio, Home Assistant doesn’t poll and the app stays where it is. As far as I can tell it doesn’t jump on its own in between.
I also found soloist ctl get_queue, but that only listens on localhost, so I can’t reach it from Home Assistant without SSH.

So a simple read-only way to get the upcoming tracks, without the apps jumping along, would be great.

Thanks!

Hey @Sterke-Jerke,

Thanks, that settles it. Your REST browse is the trigger, and it is a plugin defect, not Home Assistant.

What 0.9.1 does: the first browse of soloist_connect marks the page as open. From then on every track change and every queue_changed from Spotify rebuilds the page and broadcasts it as pushBrowseLibrary to every connected client, not just the one that asked. Volumio hands a plugin only the URI, never the caller, so there was no way to push to one client; the broadcast was wrong from the start. The flag is only cleared when a browse of a soloist_connect URI fails the check, so your dummy URI never reached this plugin and nothing was cleared. That is why it did not help.

Fixed in 0.9.2, on GitHub as of today. The page is a plain read: a browse asks Spotify for the full queue once, returns it to whoever asked, and nothing is pushed afterwards. A REST browse of soloist_connect has no side effects. Your once-a-minute poll and the on-track-change call both keep working and return the upcoming tracks; the apps stay where they are.

0.9.2 is not in the store. The store stays 0.9.1 until the next submission. To run it now: uninstall the store plugin, then install from GitHub (git sparse clone or alsa_soloist_connect-main.zip), armhf or x86.

One thing stays as it was: /api/v1/getQueue is Volumio’s own queue and will not show Soloist’s list. Browse soloist_connect is the read-only path you were after.

Please report back your test results as detailed as possible.

Kind Regards,

Hi @foonerd,

Thanks for the quick fix and the clear explanation. 0.9.2 solves it here.

Hi,

I’m experiencing an intermittent playback issue with Spotify Soloist Connect on my Raspberry Pi 5 running Volumio 4.

Occasionally, when a song finishes, Soloist rapidly skips through numerous tracks in the Spotify playlist, playing approximately one second of each before eventually settling on a track much farther down the playlist.

I’ve experienced this several times, including today, October 30. I’ve also had an instance where playback simply stopped after a song instead of advancing.

My configuration:

  • Raspberry Pi 5, Volumio 4
  • Spotify Soloist Connect (updated through the plugin store)
  • USB output to Leaf Audio DDC
  • Spotify controlled from an Android phone
  • Regular Spotify plugin disabled
  • Local library indexing completed
  • Verbose logging enabled

I successfully submitted a Volumio diagnostic report immediately after today’s incident.

Could you advise how best to provide the diagnostic logs securely, and whether this resembles a known Soloist playback-state issue?

Thanks!

Hey UbdU, welcome.

I can’t help without the log. I have not been able to reproduce this here, so the log from your device is the only evidence available.

Please post the link from the log you submitted on 30 October. If you no longer have it, submit a new one straight after the next occurrence, as described here:

Keep verbose logging on, as you have it now, and give the approximate time the skipping started so I can find it in the log.

On the security question: the plugin keeps your Soloist API key out of the Volumio log, so the log link is fine to post here. What must never be posted is the API key itself, or anything copied by hand from /data/soloist.

Kind Regards,

Thanks for the clarification about the API key.

Here’s the diagnostic log:

http://logs.volumio.org/volumio/pL1sJG6.html

The skipping occurred shortly before approximately 2:21 PM Eastern Time on October 30, 2026, based on when I reported the problem. I submitted the diagnostic log shortly afterward.

Verbose logging was enabled.

Thanks for investigating!

Hey @UbdU,

Thanks, that log has what was needed.

Both skip runs are in it: 14:16:05, and 14:20:08, which is the one you reported. Each starts at the natural end of a track and steps through about 20 tracks of the playlist in 4-5 seconds. Both stop on the same track, Joys Of The Emptiness.

During both runs the plugin sent no skip, play or pause, and neither did Volumio. As far as the log shows, the track changes come from Soloist itself, which is Spotify’s binary. The plugin only reports what Soloist tells it. The playback stop you mentioned is in there too (14:16:26 to 14:16:37), and Soloist reported that as well.

One thing would narrow it down. Let the same playlist run with the Spotify app on your phone fully closed, and say whether it still happens.

Kind Regards,

@Wheaten and @nerd ,

I wanted to try your plugin on my Raspberry Pi 3B+ to get lossless Spotify.
I asked Claude for help and we ended up with two pull requests on GitHub. I can’t say I fully understand them, and I couldn’t explain them either, but it works, and that’s enough for me! :grinning_face_with_smiling_eyes:

I tested it on my Pi 3B+ with Volumio 3.912: lossless playback and the IR remote both work.

Thanks a lot for all your hard work, it made all this possible!

Hey @chrisp429,

Thank you for trying it on the Pi 3B+, and for testing it so thoroughly. Good to know lossless playback and the IR remote work on Volumio 3.912.

I can’t merge the two pull requests as they are. They were opened against main, which is the Volumio 4 (bookworm) release branch that everyone installs from, and both changes also affect Volumio 4, where they have not been tested yet. I have moved both to a separate feature/buster branch on GitHub, so nothing is lost.

What I need to work out now is how to bring buster support in cleanly through the release GitHub Actions, rather than merging it straight into the Volumio 4 release. I’ll update here when there is something to test.

If you want to try something else in future, just ask here first and I’ll set up a test branch for it.

Kind Regards,

Hi @nerd ,
Thanks for the quick reply, and for moving both pull requests to feature/buster instead of just closing them!

Sorry about opening them against main: it’s my first time contributing to a project, and I didn’t know how it works. I actually started this just for myself, then thought it might be useful to share, in case it helps someone else on Volumio 3.

I’ll ask first next time. If you need me to test anything on my Pi 3B+, just let me know.

Thanks again for all your work!

Dear Volumionauts,

Specifically - @chrisp429 as promised, an update: Volumio 3 now has a best effort build of the plugin. The current release is v0.9.5.

What happened to your two pull requests:

  • The API key fix is in the plugin since 0.9.3, for both Volumio 4 and Volumio 3, with credit to you in the changelog. The shim now starts with the daemon, so the key is hidden from the start, not only after the first sound.
  • The Volumio 3 changes did not go into the Volumio 4 plugin. They have their own folder in the repository, and each release now builds a second zip from it, so the two builds cannot get in each other’s way. Volumio 4 still installs patchelf from apt. The Volumio 3 build brings its own, as you proposed.

Each release on GitHub now has two zips:

  • soloist_connect-0.9.5.zip - Volumio 4
  • soloist_connect-0.9.5-buster.zip - Volumio 3

Release page: Release v0.9.5 · foonerd/alsa_soloist_connect · GitHub

To install on Volumio 3, put the -buster zip in /home/volumio on the player, then run:

mkdir -p /home/volumio/soloist_connect
cd /home/volumio/soloist_connect
miniunzip /home/volumio/soloist_connect-0.9.5-buster.zip
volumio plugin install

To update later, uninstall the plugin from the Volumio UI first, then install the new zip the same way.

Please note the terms for the Volumio 3 build:

  • It is offered as-is. I have no Volumio 3 device, so reports from this thread are the only testing it gets.
  • It is not in the plugin store. GitHub is the only place to get it.
  • A problem that affects only Volumio 3 stays open unless someone from the community offers a fix.

To report a problem, say it is the Volumio 3 build, and give the Volumio version, the board, and the output of this command with the API key removed:

journalctl -u soloist -u volumio --no-pager

Thanks again for the report and the work behind it.

Kind Regards,

Dear Volumionauts,

A short update, and a slightly unexpected one.

The shim that sits between Soloist and ALSA was written for Volumio and nothing else. Its default device is plug:volumio, and it was tested against Volumio’s chain. It turns out a shared library has no idea which distribution it is running on. The shim have been running by hand on piCorePlayer and moOde, with Soloist started from a shell or from systemd, and no Volumio anywhere near it.

They did not just run it. They broke it, properly and usefully.

  • ludoo, on piCorePlayer (Pi 4B, Allo DigiOne), found that tracks never advanced on their own, and sent a patch with the report. felipec84 confirmed the same stall on moOde (Pi 5, HiFiBerry DAC2 HD). The cause was one frame of rounding at the end of every track. Shim 0.2.10 fixes it and passed ludoo’s end-of-track checks.
  • ludoo then ran a 30-minute gapless session on 0.2.10 and found a second, older fault. After an underrun mid-track, the shim restarted the card without a word and never told Soloist, and by all the evidence so far the two then sat waiting for each other. His own build already had the missing piece. Shim 0.2.11 now reports an underflow once per dry spell, the way PulseAudio does, and logs the recovery.

Neither fault ever showed on Volumio. Volumio’s chain is simply too polite to report an underrun the way a plain hardware device does. The fixes go to everyone all the same.

What has changed as a result:

  • The shim now has its own releases on GitHub (shim-v0.2.x), built by CI for arm64, armhf and amd64. Each archive carries the library, its source revision and the licence, with checksums alongside. The plugin pins one of those releases instead of owning the library.
  • The shim’s README is now written for any ALSA system, not just ours.

To keep this in proportion: it is a handful of users on other distributions, not those projects adopting anything. I have asked nobody to package it as a default while testing is open. Still, it is nice to see a Volumio component earn its keep elsewhere, and the bug reports have been better than some I write myself.

For Volumio users:

  • 0.9.7 is a cutting-edge pre-release on GitHub and ships shim 0.2.11. The store package is unchanged.
  • 0.2.11 is waiting on the piCorePlayer and moOde results and on my own bench. If you run the cutting edge, long gapless sessions are the useful test. If anything stalls, a log with Verbose logging on, from about 30 seconds before the stall, is what I need.

Thanks to ludoo and felipec84 for the reports, the patch and the patience.

Kind Regards,