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 · 0 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
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

1 participant