Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to adjust volume/control playback programatically (ie, from command line)? #1473

Open
YutongGu opened this issue Mar 3, 2025 · 5 comments

Comments

@YutongGu
Copy link

YutongGu commented Mar 3, 2025

Is your feature request related to a problem? Please describe.
I'm running librespot on a raspberry pi and I'd like to be able to adjust the volume and control playback of my librespot instance using gpio button inputs and have the new volume or new track reflect in the app. I'm using a pipe backend so I can't use alsa to adjust the volume. This is a intentional design choice so I'd prefer not to have to switch to alsa.

Describe the solution you'd like
I'd like for there to be some kind of DBus interface or even a simple web socket that I can connect to in order to read and write volume and playback commands to librespot

Describe alternatives you've considered
I've considered alsa but as mentioned before, I would prefer to stick to the pipe backend. I also doubt using alsa will satisfy the requirement that the new volume reflect in the spotify app or solve for the ability to pause/play/skip.

Additional context
None

@YutongGu YutongGu changed the title Any way to adjust volume programatically (ie, from command line)? Any way to adjust volume/control playback programatically (ie, from command line)? Mar 4, 2025
@photovoltex
Copy link
Member

The only way to currently influence the volume, is via the startup parameter to adjust the starting volume.

I think #1341 is what you are looking for, but it seems quite stale currently.

@roderickvd
Copy link
Member

You may find #1341 interesting.

@photovoltex
Copy link
Member

If you want a solution right now, spotifyd might be worth a look :)

@YutongGu
Copy link
Author

YutongGu commented Mar 5, 2025

Ooh nice! I didn't know about spotifyd. What's main the difference between that and librespot?

@photovoltex
Copy link
Member

It's pretty much just librespot but with more functionality built around the library. I also just know that it exists with more functionality under linux, but can't point to anything specific as I never deep dive into the project yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants