Page 1 of 1

Audio aliasing

Posted: 2021-09-06, 19:15
by Lunokhod
I have noticed some loud clicks at the start and end of audio clips on Duolingo. This is quite likely more of a system issue than browser issue. But while looking for some audio test things I found this page:
https://www.audiocheck.net/audiotests_aliasing.php
Both Firefox and Pale Moon display aliasing (a strange tuning a radio rising and falling weird siren type sound) during the test but Chromium doesn't. This could also be more of a system issue too, but who knows. Using Linux & Alsa, no Pulse. Just wondered if it was interesting given the recent audio discussions.

Re: Audio aliasing

Posted: 2021-09-06, 21:24
by _yuyu_
I hear no aliasing artifacts neither in PM nor in FF on my system.

Re: Audio aliasing

Posted: 2021-09-07, 08:45
by Moonchild
Sounds fine to me on my crappy on-board realtek audio and 2.1 speakers on Windows 10.
Maybe you want to check the output frequency set for your device. Certainly doesn't seem to be anything on our end.

Re: Audio aliasing

Posted: 2021-09-17, 03:07
by plushkava
Lunokhod wrote:
2021-09-06, 19:15
Both Firefox and Pale Moon display aliasing (a strange tuning a radio rising and falling weird siren type sound) during the test but Chromium doesn't. This could also be more of a system issue too, but who knows. Using Linux & Alsa, no Pulse.
In the event that you are relying upon ALSA's software-based mixing, everything must be resampled to a particular frequency (usually 48 kHz). By default, ALSA tries to make use of the speexrate resampler, if available. This is a good, fast resampler. Otherwise, it resorts to using a crude linear resampler. The speexrate resampler is implemented as a plugin that is provided by alsa-plugins, so you should install this package if necessary. Beyond that, you could try coercing the use of the speexrate plugin by defining the following setting in /etc/asound.conf.

defaults.pcm.rate_converter "speexrate_medium"

I'm not sure why Chromium would behave as expected for a "no pulse" setup, because it's not really designed to work effectively without pulseaudio (which also uses speexrate).

Re: Audio aliasing

Posted: 2021-09-17, 20:44
by Lunokhod
Installing alsa-plugins has fixed this, the aliasing artifacts are gone now. Thank you for this solution.