Closed rushvora closed 2 years ago
Hmm, maybe it forces 44000 sample rate? Try changing config to:
default.clock.rate = 48000
default.clock.allowed-rates = [ 48000 ]
I uncommented those lines and changed it to the below
default.clock.rate = 48000
default.clock.allowed-rates = [ 44100 48000 ]
It seemed to have helped, there is still crackling that comes rarely in Discord, but Spotify and other audio seems fine. Let me know if you have any other ideas, I'm closing it for now since it's not as big of an issue now.
Great, I think I was optimistic in readme saying that 44100 should work. The sample rate should be forced to 48000 (there is no really point in using 44100 unless you listen to CDs, and even then...). There is also a matter of buffer size - pipewire uses 512 or other powers-of-two, which current version of plugin may not handle gracefully.
Anyway, I'll update the plugin soon to correctly handle different buffer sizes and would update readme to state that 48000 sample rate should be forced.
I followed the Pipewire section, and I got it working successfully. The input is a USB microphone, and the output is to a USB DAC. If I select the the "Noise cancelling source" in audio settings, the audio cancellation works great, both the fan and AC sound is suppressed, even when I am speaking. But when playing music, or in Discord voice, or any sound really, there is a crackling sound that I can hear, along with the audio. If I select the USB microphone as the output instead of the Noise cancelling source, the crackling sound stops immediately.
Software Setup OS: EndeavourOS Linux x86_64 Kernel: 5.18.5-arch1-1 DE: Plasma 5.25.0
The pipewire config
Picture of the audio settings
Anyone can help with figuring out why the crackling is happening, and how I can fix it? Is the noise suppression plugin affecting the output as well?