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

Significant Delay when playing, but 0s when pausing or changing volume. #176

Open
harbirg opened this issue Dec 19, 2024 · 4 comments
Open

Comments

@harbirg
Copy link

harbirg commented Dec 19, 2024

Problem/Motivation

Downloaded the addon on HA and noticed significant delay when playing songs but if you pause or change volume its immediate.
There have been a couple of issues filed with the same problem but closed due to being stale, so opening this one to provide a solution and request maintainer to fix it.
#164 - Significant delay when playing/stopping/changing songs #164
#166 - 10s lag when playing, but 0s when pausing #166

Proposed changes

After debugging the addon, I noticed that it is using flac codec being used is slowing things down. As per the commits, it should be wav. So, its unclear why flac codec is being used when latest commit uses wav at https://github.com/hassio-addons/addon-airsonos/blob/main/airsonos/rootfs/etc/airsonos.xml

For folks seeing delays, please make the following changes -

  1. Stop the addon as it is needed to modify the airsonos.xml
  2. Open airsonos.xml which is located at /addon_configs/a0d7b954_airsonos/airsonos.xml. Your folder name may be slightly different. Use the 'File editor' addon to make this change.
  3. Modify flac to wav
  4. Save airsonos.xml
  5. Start the addon
  6. Verify in the logs that you no longer see Content-Type: audio/flac and it should be Content-Type: audio/wav
Copy link

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Jan 19, 2025
@JustAiden9
Copy link

huh yeah, this worked. It changed my delay from 15 seconds down to 1 second! I think that extra 1 second is the data transfer from my iPhone to the HA server, so overall, it's a perfect fix!

@github-actions github-actions bot removed the stale There has not been activity on this issue or PR for quite some time. label Jan 27, 2025
Copy link

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Feb 26, 2025
@wobfan
Copy link

wobfan commented Mar 3, 2025

+1, that fixed the 15 seconds delay i had, which actually made me not use it at all. thanks for investigating and finding the fix!

@github-actions github-actions bot removed the stale There has not been activity on this issue or PR for quite some time. label Mar 4, 2025
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

3 participants