fix: improve voice quality and add distortion troubleshooting

- Fix RNNoise configuration: use mono instead of stereo, increase VAD threshold to 95%
- Adjust quantum settings: increase min-quantum to 64 for stability
- Add comprehensive voice distortion troubleshoot script
- Create optional disable-auto-rnnoise.nix for problematic setups
- The automatic RNNoise filter can cause artifacts, script helps diagnose and fix
This commit is contained in:
Geir Okkenhaug Jerstad 2025-06-18 21:46:31 +02:00
parent 52a9d544fc
commit 406acb3daf
3 changed files with 318 additions and 5 deletions

View file

@ -0,0 +1,25 @@
{
config,
lib,
pkgs,
...
}: {
# Optional configuration to disable automatic RNNoise filter
# This can be imported if the automatic filter causes distortion
services.pipewire = {
extraConfig.pipewire."15-disable-auto-rnnoise" = {
"context.modules" = [
# Commenting out the automatic RNNoise filter
# Users should use EasyEffects for manual noise suppression instead
# {
# name = "libpipewire-module-filter-chain";
# args = {
# "node.description" = "Noise Canceling Source";
# # ... rest of RNNoise config
# };
# }
];
};
};
}