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

Random stutter #85

Open
Frejoh466 opened this issue Dec 21, 2022 · 7 comments
Open

Random stutter #85

Frejoh466 opened this issue Dec 21, 2022 · 7 comments

Comments

@Frejoh466
Copy link

I have been using SWYH for some years, but as it does not have an auto connect feature I found swyh-rs, and it seemed to work.

But on random points it loses audio for 0.2 - 5sec. I never had this problem with SWYH. Not sure if it is package loss, but is swyh-rs network heavier than SWYH? It is on the 2.4GHz bandwidth, but I never had any problem with the network before, and no other program is using the PC. Is there a buffer setting I can change? SWYH has about 5sec delay, while swyh-rs has ~100ms.

The receiver is a IKEA SYMFONISK Speaker lamp.
log.txt

@dheijl
Copy link
Owner

dheijl commented Dec 21, 2022

Low latency is a feature of both swyh-rs and Sonos. Swyh-rs has no buffering settings, I don't know if the Sonos app allows you to configure buffering?
You seem to have a problem similar to issue #84 where the 2.4 GHz network was the cause of the problem, and switching to wired or 5 GHz fixed it.

@dheijl
Copy link
Owner

dheijl commented Dec 21, 2022

Apparently Sonos is aware of wifi causing cut-out problems: https://support.sonos.com/en/article/reduce-wireless-interference.

@Frejoh466
Copy link
Author

It works fine with SWYH. But it seems like SYMFONISK has support for 802.11b/g/n, so will see if I can get 5GHz to work when I get the time to reconfigure it.

@dheijl
Copy link
Owner

dheijl commented Dec 21, 2022

Do you use mp3 with SWYH? Mp3 compression will add buffering.
Also, it seems Sonos can increase buffering for Airplay, but that's it.
Anyway, I think buffering should always happen in the client, not in the server.
Swyh-rs will also introduce buffering when playing FLAC, unavoidable with compression, but Sonos does not do FLAC when streaming UPNP/DLNA.

@Frejoh466
Copy link
Author

Ok, I have done more testing. And it seems like swyh-rs is a lot more sensitive on the network than SWYH. On 5GHz the issue was reduced quite a lot. I guess SWYH buffer or transmit the data on a more robust way than swyh-rs. I'm not in a congested area, so the WiFi is strong. And haven't had any trouble with the WiFi before, but I don't have an other router to test with, so don't know if the problem is my RT-AC66U B1 router.

But I'm not sure what the problem is, sometimes it works just fine, other times there is more silent than music. And sometimes it just end the connection. So I'm going to assume it my network until I can I can get an other WiFi router to check if the problem still exist. I'm just going to stay with the old SWYH untill then, as it works fine, and the only feature I was looking for was the auto connect.

@dheijl
Copy link
Owner

dheijl commented Jan 2, 2023

Thanks for the feedback!

swyh-rs does not do any buffering to ensure minimal latency (as buffering should be a configurable function of the client IMHO).
Sonos also does minimal buffering to ensure minimal latency.
I suppose that the combination swyh-rs/Sonos demands a very good network, comparable to wired ethernet.

@dheijl
Copy link
Owner

dheijl commented Feb 10, 2024

Recent Sonos firmware supports FLAC, reducing stutter because FLAC compression automatically increases buffering.
You could try the latest swyh-rs release with FLAC to see if it performs better.

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

2 participants