Noise Cancelation
This commit is contained in:
parent
45d8ac0dbf
commit
41cdcdd99a
2 changed files with 41 additions and 0 deletions
|
|
@ -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
|
# Enable networking
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
hwconfig,
|
hwconfig,
|
||||||
inputs,
|
inputs,
|
||||||
config,
|
config,
|
||||||
|
unstable-pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -23,4 +24,8 @@
|
||||||
services.displayManager.sddm = {
|
services.displayManager.sddm = {
|
||||||
wayland.enable = lib.mkForce false; # black screen
|
wayland.enable = lib.mkForce false; # black screen
|
||||||
};
|
};
|
||||||
|
environment.systemPackages = with pkgs;[
|
||||||
|
prismlauncher
|
||||||
|
unstable-pkgs.mcpelauncher-ui-qt
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue