core icon indicating copy to clipboard operation
core copied to clipboard

Sonos Speaker over Airplay 2

Open benleut opened this issue 5 months ago • 10 comments

Issue: Radio sometimes mutes after starting or changing staions, staus shows play, but no sound. if you press pause and then play it works again. logs attached.

starting unseradio -> sound is ok changing to rockantenne -> silent -> status showing play pausing and again clicking play -> sound is back

lox-audioserver-logs-2026-06-28T12-16-43-771Z.txt

benleut avatar Jun 28 '26 12:06 benleut

Looks like there is the sam with spotify when changing tracks, or scrubbing forward.

lox-audioserver-logs-2026-06-28T12-57-45-945Z.txt

benleut avatar Jun 28 '26 12:06 benleut

I commited a couple of fixes to the dev branch that will probably fix your issues. Will you be able to test on the dev branch?

rudyberends avatar Jun 28 '26 15:06 rudyberends

Now testing on dev branch

Spotify test play - next song - scrubbing in the middle - pause

looks like it is working, thouqh there are some issues in the log

log attached

lox-audioserver-logs-2026-07-01T05-09-44-421Z.txt

benleut avatar Jul 01 '26 05:07 benleut

Now testing on dev branch

radio test starting station (no sound) - changing station (no sound) - pauset hen play - sound ok, changing station - no sound

I have changed th stations a few times and paused and played again to get back sound

lox-audioserver-logs-2026-07-01T05-16-07-460Z.txt

benleut avatar Jul 01 '26 05:07 benleut

i have testet again, looks like sound is coming back after some time after changing station (without pause play)

benleut avatar Jul 01 '26 05:07 benleut

Thanks for testing.

Spotify — glad it's working. The warnings you saw in the log (This operation was aborted) are harmless: that's just the previous track's stream being torn down at the switch, not an error.

Radio — your logs showed the remaining cause. The fix was kicking in and bringing the sound back on its own, but too slowly: recovering the audio was rebuilding the whole connection to the speaker (~2 seconds), and that stacked on top of the radio stream's own slow start, so you got several seconds of silence before it caught up — which is why it felt like "no sound" until you hit pause/play.

I've pushed a further fix to dev: it now re-anchors the audio on the live connection the exact same way your manual pause/play does (instantly), instead of rebuilding the connection. So station changes should recover on their own without the long silence. Note a radio station change will still have a short delay before audio starts — that part is unavoidable, it's the stream itself buffering — but it shouldn't be silent-until-pause anymore.

Could you pull dev again and retry the radio test (start a station, change stations a few times, without pausing)? If anything's still off, another log would be great.

rudyberends avatar Jul 02 '26 10:07 rudyberends

I repulled the dev, but it still is DEV-20260628155003

benleut avatar Jul 02 '26 18:07 benleut

Test with changing stations, still having issues with sound coming back, some times after 8s , some time after 26s. Adjusting volume + or - brings back sound immediately...

lox-audioserver-logs-2026-07-02T18-55-36-522Z.txt

benleut avatar Jul 02 '26 18:07 benleut

The repo has been renamed to core and will soon move to sonn-audio organization.

These renames and moves also change the container uri. For now you can use this for the latest dev;

docker pull ghcr.io/lox-audioserver/core:dev-latest

rudyberends avatar Jul 02 '26 22:07 rudyberends