-
Notifications
You must be signed in to change notification settings - Fork 621
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 issue librespot/snapserver #1274
Comments
FWIW that volume setting in the source definition for snapserver is for the initial volume setting of librespot when a client connects. Try removing the codec statement from the source definition, as well as trying codec=pcm |
I figured that this could be a better place to post my request, rather than open another post.
I use this initial volume setting myself. Is there a way to set it so that after a period of time of the player being idle, say 20 minutes, this initial setting gets reapplied if the volume is currently higher than the value set for initial volume? Sometimes while playing, as the night gets later and there's periods of time with the player sitting ldle, it will startle me to start it back up when the volume was high and forgotten about. It would be nice that if the volume is currently set lower than the initial, and an idle time for any duration, to stay playing lower. I have tried making a script that sets the volume through alsa, but when i control through my phone or other, the setting is still at whatever it was last and then will still jump to the last volume as soon as i adjust it on the app. When it's been idle and still volume high, it's very abrupt and startling when playing another track. There is only one other feature request if it was ever possible, and that is the ability to add 1 second of silence track before the actual track gets played, this when librespot is first started, and then each time the player sets idle for 20 minutes or more, like my reasoning above. My reasoning is that I have an amplifier that starts up and takes 1 second to do so. It turns itself off after 20 minutes and repeats upon startup. Does this make any sense? |
Did using pcm as a codec fix this for you? I am also facing this issue and it's rather hard to reproduce random issues like this. |
Sorry I currently dont have the setup anymore to test.
(Make sure the fifo file is created beforehand. If you let one of the programmes make it there is an issue with pausing a song. it keeps going….) And in the snapserver config use this file to get spotify in snapcast with: |
Please try with native librespot. We don't support raspotify or its own librespot fork - issues specific to that should be filed there. |
This issue is still valid as I am not using raspotify. I am compiling librespot from source and using it as a source in snapcast. |
OK. Can you try running librespot with snap or anything else? |
Thank you a lot for that! I will try using file streams as soon as I get home again and report back. |
Took me a second to realize you mean packaged versions and weren't referencing snapcast :D I certainly can although I will only be able to test this Thursday with the same setup. I feel like this is caused by some combination of software and not librespot itself but I will definitely look into it further. |
Sorry for the confusion, I did mean to say without snap. Just plain compiled from source, nothing strapped on top. |
Then I will try running it on the same system and direct output to the speakers as soon as I can |
I am not able to reproduce this issue with librespot alone. Not with the Rodio backend, not with the alsa backend, not even with the pipe backend directly piped to alsa (to simulate how snapcast receives data). I AM able to reproduce this with snapcast pretty accurately now, with me only needing to skip ~3 songs for the speakers to go full blast. I will file an issue with snapcast and reference this issue there. |
This problem sounds familiar. There were already these tickets which did follow the problem: It seems that version 0.28.0 of snapcast should contain a fix for this. What version do you use @codesalatdev? |
Okay, you're right, I didn't see #1218 when searching for issues; probably because it doesn't mention skipping songs. I was on 0.27.0 and just upgraded. I don't want to jump the gun like I did with the pcm codec, so I will try breaking it for a little longer and report back. It seems like I found this issue and assumed it was librespot that is misbehaving. |
Alright, closing this one then. Thanks. |
Not sure if this issue is with Librespot or snapserver
When running librespot in snapserver conf
source = librespot:///usr/bin/librespot?name=Spotify&devicename=Keuken &autoplay=true &volume=75 &bitrate=320 &sampleformat=44100:16:2 &codec=flac
(I tried a lot of different volume settings nothing seemed to help)
I have the issue that when skipping songs sometimes the sound gets boosted extremely loud. This sounds like static noise but if you lower the Spotify volume to almost 0% you notice the sound is normal again but very loud.
I tested this on the snapweb , phone client and snapclient on the server itself all have the same issue.
I am running the raspotify fork on a raspbery pi zero 2 w
raspotify uses librespot 0.4.2 a6e1258 (Built on 2023-06-21, Build ID: zuwVQKTQ, Profile: release)
I tried running librespot seperate now to a fifo file and make snapserver catch that stream. Like this post https://www.reddit.com/r/linuxaudio/comments/152vmtk/comment/kw41o5w/?share_id=CXMPHgak5LGL0HXpcZW-R&utm_content=2&utm_medium=android_app&utm_name=androidcss&utm_source=share&utm_term=1
This seems to work without issues.
I could not find any logs
Host (what you are running
librespot
on):The text was updated successfully, but these errors were encountered: