about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-08-12T16·50+0100
committertazjin <mail@tazj.in>2020-08-12T22·15+0000
commitc9d5262aa7b093befe16b14bca74cb8f3914d299 (patch)
treec2ee8da7ab3bfe46db6e9c53efe0cc2050711456
parent1b5a5b0561b427c473ea1910669f1d4eba52bb02 (diff)
fix(nsfv-setup): Resample pipeline at 48kHz with pulseaudio r/1641
This gives better overall results and may also prevent drift, which
was an issue I've had previously.

See also this upstream commit for NSFV:
https://github.com/werman/noise-suppression-for-voice/commit/34003bd9ab1509708eab61ef458feaae23327495

Change-Id: I45534cb60130755949cdbfbc39aed2478a249c72
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1717
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
-rw-r--r--tools/nsfv-setup/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/nsfv-setup/default.nix b/tools/nsfv-setup/default.nix
index aa3567c56ae1..f4dd6c4dd10a 100644
--- a/tools/nsfv-setup/default.nix
+++ b/tools/nsfv-setup/default.nix
@@ -23,5 +23,5 @@ in pkgs.writeShellScriptBin "nsfv-setup" ''
 
   SINK=$(${pulseaudio}/bin/pacmd info | ${ripgrep}/bin/rg -r '$1' '^Default sink name: (.*)$')
   echo "Setting up NSFV filtering to sink ''${SINK}"
-  ${pulseaudio}/bin/pacmd load-module module-ladspa-sink sink_name=NSFV sink_master=''${SINK} label=noise_suppressor_mono plugin=${pkgs.nsfv}/lib/ladspa/librnnoise_ladspa.so control=42
+  ${pulseaudio}/bin/pacmd load-module module-ladspa-sink sink_name=NSFV sink_master=''${SINK} label=noise_suppressor_mono plugin=${pkgs.nsfv}/lib/ladspa/librnnoise_ladspa.so control=42 rate=48000
 ''