Noise cancellation on NixOS with torch insufficient on AMD 13 gen

Which Linux distro are you using? NixOS

Which release version? 24.05

Which kernel are you using? 6.6.52

Which BIOS version are you using? Factory provided

Which Framework Laptop 13 model are you using? AMD Ryzen 7040

I am trying to use torch to remove background noise as you can see from dotfiles/nixos/configuration.nix at main · edmondop/dotfiles · GitHub but the results are really bad. I cannot participate in any videoconference with the laptop

Is that because you’re in a noisy environment? The microphone itself without any noise cancellation sounds much better than the audio from any video conference app so if the noise you’re trying to filter out is from the microphone then something is wrong (in either software or hardware).

Personally, I have a completely unsilenced / unsuppressed mechanical keyboard so I set up noise-suppression-for-voice. If I’m not talking, you can’t hear me typing at all. If I am talking, you can pick up faint clicks of my keys in the background.

The default gain for the built in microphone too high. I’m on Fedora here, I have reduced mic gain to ~ 20%:

This results in pretty good audio for conference calls.