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:
parent
52a9d544fc
commit
406acb3daf
3 changed files with 318 additions and 5 deletions
|
@ -24,8 +24,8 @@
|
|||
"context.properties" = {
|
||||
"default.clock.rate" = 48000;
|
||||
"default.clock.quantum" = 1024;
|
||||
"default.clock.min-quantum" = 32;
|
||||
"default.clock.max-quantum" = 2048;
|
||||
"default.clock.min-quantum" = 64;
|
||||
"default.clock.max-quantum" = 8192;
|
||||
};
|
||||
|
||||
"context.modules" = [
|
||||
|
@ -40,10 +40,10 @@
|
|||
type = "ladspa";
|
||||
name = "rnnoise";
|
||||
plugin = "${pkgs.rnnoise-plugin}/lib/ladspa/librnnoise_ladspa.so";
|
||||
label = "noise_suppressor_stereo";
|
||||
label = "noise_suppressor_mono";
|
||||
control = {
|
||||
"VAD Threshold (%)" = 50.0;
|
||||
"VAD Grace Period (ms)" = 200;
|
||||
"VAD Threshold (%)" = 95.0;
|
||||
"VAD Grace Period (ms)" = 100;
|
||||
"Retroactive VAD Grace (ms)" = 0;
|
||||
};
|
||||
}
|
||||
|
@ -84,6 +84,9 @@
|
|||
|
||||
# Validation script
|
||||
(writeShellScriptBin "validate-audio" (builtins.readFile ./validate-audio.sh))
|
||||
|
||||
# Troubleshoot script for voice distortion
|
||||
(writeShellScriptBin "troubleshoot-voice-distortion" (builtins.readFile ./troubleshoot-voice-distortion.sh))
|
||||
|
||||
# Optional: Professional audio tools
|
||||
# qjackctl # JACK control GUI (for JACK applications)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue