-
Notifications
You must be signed in to change notification settings - Fork 1
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
Helicopter noise instead of music #1
Comments
Hi can you provide more information on your setup , Hardware, and are you using pulseaduio or direct Audio HW Access? |
I have the same behaviour. Hass.io on raspberry pi 3. Tried with hifiberry and usb soundcard. How do I find out which audio is used? |
@Dididam you can check in the addon log at boot what audio device its opening it also lists what is available, probably the default, in which case this is straining through pulseaudio as well, this may be to much for a Pi3 and the usb is just a bit flaky under load . Are you aarch64 or armv7? Is this just happening randomly? what else is the Pi doing? Also you could try killing and restarting the HA PA container and then addon to see if this fixes it, Also setting the cards up for direct access via squeezelite is probably worthwhile, I have a Pi3B+ and a usb sound card I will see if I can replicate under the same arch... |
It’s aarch64 OS 6.5 Is there a guide howto set up direct access? |
@Dididam ok not seeing the sound card in that output is it running in Protection mode disabled.? I don't have a guide yet so lets start here ;-) This may well cause issues with inbuilt HA Audio system. Run in Protection mode disabled. |
@pssc What is full permission mode? Is equal to disabling the protection mode? Output devices: But what is the part of the sound device name I place as output in the config? I didn't manage to get it to open the output device: [14:21:21] INFO: squeezelite -M SqueezeLite-HA-Addon -N /data/name -o hw:CARD=sndrpihifiberry -m 2d:35:1b:6e:7b:5c -d all=debug |
@fovk500 yes thats right well at a guess HA audio may have the device open, try sysdefault:CARD=sndrpihifiberry what Pi are you using? |
@fovk500 @Dididam anything in dmesg logs? this is all classic Pi I can't keep up behaviour
We can massage the alsa buffering behaviour with -a 16384:1024:: to adjust the buffer and period size. |
looking upstream other than the report ralph-irving/squeezelite#145 could be similar and this is also up streamed here at ralph-irving/squeezelite#149 but the PA build had real issues during my testing. We are pinned at commit ralph-irving/squeezelite@556de56 atm, and due to HA needs we are pretty much tied to a self build |
@pssc this is getting far beyond my skills. I‘ll stick around and try again once there’s an update. Anyways appreciate your efforts. |
New version out please report back @Dididam @Vinndimon @fovk500 this will use the PA build by default and swap to alsa if you specify and output device |
I am still having this problem with the new version. Both with OS protection on and off. My system is Intel NUC with Ubuntu 20.04 and HA Supervised. Here is the full log:
|
@Vinndimon remove your output device and it will switch to the pulse audio build |
@pssc how do I remove the output device? Do you mean removing the wire from the audio jack? I does not help. |
In the config options
…On Sat, 30 Oct 2021, 10:03 Vinndimon, ***@***.***> wrote:
@pssc <https://github.com/pssc> how do I remove the output device? Do you
mean removing the wire from the audio jack? I does not help.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANORYPX2GN6EYKP46E7HPLUJOYHHANCNFSM5FAQWYBA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@pssc i've tried different options. The one with the clean config too. With no dice. |
@Vinndimon Try in the terminal & web addon |
New version 0.11 with some fixes for the default pulse audio config. |
I have been able to verify usb playback on adm64 and Pi3/Pi4 using PA. |
@pssc audio test runs normally. At least, after the reboot. I'll run a long-term test and come back if the addon breaks again. |
@pssc strangely, the new version works with sync very badly. It was able to sync with another player only after 10-20 seconds of playback. It was accompanied by stuttering. This problem becomes present each time I switch the track. |
Today I updated hassio and the add on. So far no helicopter. Regarding Syncing with another player I experience that after each track it takes some while until they are in sync again. It seems that the lms plugin starts later after track changes. |
@Vinndimon, @Dididam this might be a feature of the direct Pulse Audio support, I will see if I can replicate. Are you using the Pulse Audio build(its in the logs) if so please try the alsa build (config option) and report back |
So I was able to replicate using pulse audio and for me no issues occur with the alasa build via the default(pulse) target, so this is probably a bug in the pulse code in squeezelite, would like to here if people are still getting problems with the alsa build |
Setting the option to alsa build does the trick: synch between players is smooth and no helicopter. |
@Vinndimon I have just pushed a version 0.12 with more tweaks for scheduling and memory locking in the alsa build would be interested if this one fixes your issues. (make sure you force alsa build). |
@pssc unfortunately, 0.12 (alsa) started with the helicopter noise right after the device reboot. However, the PA build works fine. At least for now. We'll see the final results in a day or so. |
UPD: the PA build has slight sync issues. Unfortunately. |
Just to note: this is not an HA issue -- it's a pure squeezelite issue. I have squeezelite running on a small ARM computer who's only job is to be a receiver for LMS streaming music, and output it to an amp. There's no Home Assistant anywhere in this. I frequently get this (almost daily, when I first play music), and must restart squeezelite to restore it to proper functioning. |
@xxxserxxx that is most useful, is that with alsa or pluse? is that a Pi or something else? |
It's an odroid; I have two, connected to two different amps. They both have this problem. Both are (the now discontinued) ODROID U3 (Cortex-A9 Quad Core ARM, 2GB RAM), running the Ubuntu that came with them (which, with upgrades, is now bionic), and both are using ALSA. The behavior is relatively new; I've posted more information in response to a related ticket on the squeezelite repo. It used to happen rarely, and with some recent update it's started happening almost daily. It seems to happen only when the system is inactive for several hours. I suspect it has something to do with something (ALSA, squeezelite, the device driver) going inactive and maybe getting swapped out of memory, or maybe the sound device being put to sleep by the OS; it never happens while music is more-or-less constantly playing, only after a period of inactivity. Or, maybe it has nothing to do with the audio device, and is a result of some loss of synchronization betwene the LMS server and the remote squeezelite -- again, due to no traffic over a longer period of time. |
Maybe for someone will help my setup: Build: pulse It works. Any another setup gives the same helicopter noise |
Sometimes, randomly, Squeezelite loses the ability to play music. Instead of music it plays some strange "helicopter" noise. The decoder skips frames according to the log:
The only thing that fixes it is complete reboot of the device. Restarting the service does not help.
The text was updated successfully, but these errors were encountered: