mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 00:05:55 +03:00
[GH-ISSUE #1473] Any way to adjust volume/control playback programatically (ie, from command line)? #662
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#662
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @YutongGu on GitHub (Mar 3, 2025).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1473
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
pipebackend 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
pipebackend. 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
@photovoltex commented on GitHub (Mar 4, 2025):
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 commented on GitHub (Mar 4, 2025):
You may find #1341 interesting.
@photovoltex commented on GitHub (Mar 4, 2025):
If you want a solution right now, spotifyd might be worth a look :)
@YutongGu commented on GitHub (Mar 5, 2025):
Ooh nice! I didn't know about spotifyd. What's main the difference between that and librespot?
@photovoltex commented on GitHub (Mar 6, 2025):
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.