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

Sound volume #33

Closed
CaptainTotte opened this issue Oct 26, 2017 · 10 comments
Closed

Sound volume #33

CaptainTotte opened this issue Oct 26, 2017 · 10 comments

Comments

@CaptainTotte
Copy link

Is there any way to adjust the default sound volume? Whenever I start a song the volume is set to max.

@wrskalle
Copy link

wrskalle commented Nov 3, 2017

Did you get anywhere with this?

@CaptainTotte
Copy link
Author

I did not, still waiting for an answer :/

@markheloking
Copy link

As raspotify is basically just a wrapper around librespot, this is more a librespot limitation/quirk. The problem is that the developer of librespot actually anounced a while back that he quit the development of librespot altogether. See #27.

@fossedihelm
Copy link

fossedihelm commented Dec 6, 2017

Librespot is declared as Unmaintained so I forked it (https://github.com/fossedihelm/librespot) and modified it to set initial volume 50%. I also add a parameter --initial-volume that allows user to pass the initial volume. After this I forked raspotify and edited to build my librespot instead of plietar'sa librespot and build the .deb with make. Now in the raspotify config in /etc/default/raspotify I can pass the parameter "--initial-volume"
e.g.
OPTIONS="--username USER --password PASS --initial-volume 20" where 20 is the % of the volume
In the main directory of my fork (https://github.com/fossedihelm/raspotify) there's the .deb I built

@tedbarth
Copy link

May it be possible to read out the phones / Spotifies musik volume and use it as start value?

@fossedihelm
Copy link

It was my first option but I've read here that it is not possible. I've not investigated more about it. I just trusted him.

@kloknibor
Copy link

I can set the volume from my iphone in the spotify app, but only with the buttons! To set the initial volume I’ve used alsamixer just run it and you can easily change the volume!

@optima-software
Copy link

If you adjust alsamixer volume, you reduce the maximum volume to that value. That's not what's needed.

@dtcooper
Copy link
Owner

Try @optima-software's solution and if it doesn't work let me know. Closing.

@febs
Copy link
Contributor

febs commented Oct 1, 2020

This is actually now implemented and configurable in /etc/default/raspotify. The file is well commented and self explanatory.

Writing for those that may stumbke here before than the documentation as I did.

https://github.com/dtcooper/raspotify/blob/master/README.md

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

No branches or pull requests

9 participants