Noise Cancelation

This commit is contained in:
Aleksandr Lebedev 2025-03-02 11:12:54 +01:00
parent 45d8ac0dbf
commit 41cdcdd99a
2 changed files with 41 additions and 0 deletions

View file

@ -65,6 +65,42 @@
];
services.pipewire = {
extraLv2Packages = [ pkgs.rnnoise-plugin ];
configPackages = [
(pkgs.writeTextDir "share/pipewire/pipewire.conf.d/20-rnnoise.conf" ''
context.modules = [
{ name = libpipewire-module-filter-chain
args = {
node.description = "Noise Canceling source"
media.name = "Noise Canceling source"
filter.graph = {
nodes = [
{
type = lv2
name = rnnoise
plugin = "https://github.com/werman/noise-suppression-for-voice#stereo"
label = noise_suppressor_stereo
control = {
}
}
]
}
capture.props = {
node.name = "capture.rnnoise_source"
node.passive = true
}
playback.props = {
node.name = "rnnoise_source"
media.class = Audio/Source
}
}
}
]
'')
];
};
# Enable networking
networking.networkmanager.enable = true;

View file

@ -4,6 +4,7 @@
hwconfig,
inputs,
config,
unstable-pkgs,
...
}: {
imports = [
@ -23,4 +24,8 @@
services.displayManager.sddm = {
wayland.enable = lib.mkForce false; # black screen
};
environment.systemPackages = with pkgs;[
prismlauncher
unstable-pkgs.mcpelauncher-ui-qt
];
}