tsuki: add rnnoise
This commit is contained in:
parent
bbd1c97912
commit
82ede0d485
4 changed files with 47 additions and 2 deletions
|
@ -41,7 +41,7 @@
|
|||
pulse.enable = true;
|
||||
wireplumber.enable = true;
|
||||
lowLatency = {
|
||||
enable = false; # disabled due to upstream issue
|
||||
enable = true;
|
||||
quantum = 64;
|
||||
rate = 48000;
|
||||
};
|
||||
|
@ -62,7 +62,6 @@
|
|||
services.hyprlock = {};
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
gamemode.enable = true;
|
||||
appimage = {
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
|
||||
boot = {
|
||||
kernelModules = ["kvm-amd"];
|
||||
extraModulePackages = with config.boot.kernelPackages; [
|
||||
v4l2loopback.out
|
||||
];
|
||||
loader = {
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
|
@ -26,6 +29,8 @@
|
|||
};
|
||||
};
|
||||
|
||||
hardware.wooting.enable = true;
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/a423d32f-ac5d-4ea2-82fb-f94b05afce29";
|
||||
|
|
|
@ -5,5 +5,6 @@
|
|||
./hydroxide.nix
|
||||
./sunshine.nix
|
||||
./wivrn.nix
|
||||
./rnnoise.nix
|
||||
];
|
||||
}
|
||||
|
|
40
hosts/tsuki/services/rnnoise.nix
Normal file
40
hosts/tsuki/services/rnnoise.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{pkgs, ...}: {
|
||||
services.pipewire.extraConfig.pipewire."00-rnnoise.conf" = {
|
||||
"context.modules" = [
|
||||
{
|
||||
"name" = "libpipewire-module-filter-chain";
|
||||
"args" = {
|
||||
"node.description" = "Noise Cancelling source";
|
||||
"media.name" = "Noise Cancelling source";
|
||||
"filter.graph" = {
|
||||
"nodes" = [
|
||||
{
|
||||
"type" = "ladspa";
|
||||
"name" = "rnnoise";
|
||||
"plugin" = "${pkgs.rnnoise-plugin}/lib/ladspa/librnnoise_ladspa.so";
|
||||
"label" = "noise_suppressor_stereo";
|
||||
"control" = {
|
||||
"VAD Threshold (%)" = 50.0;
|
||||
"VAD Grace Period (ms)" = 1000;
|
||||
"Retroactive VAD Grace (ms)" = 100;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
"audio.position" = ["FL" "FR"];
|
||||
"capture.props" = {
|
||||
"node.name" = "capture.rnnoise_source";
|
||||
"node.passive" = true;
|
||||
"audio.rate" = 48000;
|
||||
};
|
||||
"playback.props" = {
|
||||
"node.name" = "rnnoise_source";
|
||||
"media.class" = "Audio/Source";
|
||||
"media.role" = "Communication";
|
||||
"audio.rate" = 48000;
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue