mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-04-18 19:24:09 +02:00
add airplay discovery
This commit is contained in:
parent
c38ee95d62
commit
c53e81ea89
1 changed files with 56 additions and 30 deletions
|
@ -29,41 +29,67 @@ in
|
||||||
|
|
||||||
wireplumber.enable = true;
|
wireplumber.enable = true;
|
||||||
|
|
||||||
extraConfig.pipewire."30-noise-filter" = {
|
extraConfig.pipewire = {
|
||||||
"context.modules" = [
|
"30-noise-filter" = {
|
||||||
{
|
"context.modules" = [
|
||||||
name = "libpipewire-module-filter-chain";
|
{
|
||||||
args = {
|
name = "libpipewire-module-filter-chain";
|
||||||
"node.description" = "Noise Canceling source";
|
args = {
|
||||||
"media.name" = "Noise Canceling source";
|
"node.description" = "Noise Canceling source";
|
||||||
"filter.graph" = {
|
"media.name" = "Noise Canceling source";
|
||||||
nodes = [
|
"filter.graph" = {
|
||||||
|
nodes = [
|
||||||
|
{
|
||||||
|
type = "ladspa";
|
||||||
|
name = "rnnoise";
|
||||||
|
plugin = "${pkgs.rnnoise-plugin}/lib/ladspa/librnnoise_ladspa.so";
|
||||||
|
label = "noise_suppressor_mono";
|
||||||
|
control = {
|
||||||
|
"VAD Threshold (%)" = 50.0;
|
||||||
|
#"VAD Grace Period (ms)" = 0;
|
||||||
|
"Retroactive VAD Grace (ms)" = 50;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
"capture.props" = {
|
||||||
|
"node.name" = "capture.rnnoise_source";
|
||||||
|
"node.passive" = true;
|
||||||
|
"audio.rate" = 48000;
|
||||||
|
};
|
||||||
|
"playback.props" = {
|
||||||
|
"node.name" = "rnnoise_source";
|
||||||
|
"media.class" = "Audio/Source";
|
||||||
|
"audio.rate" = 48000;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
"10-raop-discover" = {
|
||||||
|
"context.modules" = [
|
||||||
|
{
|
||||||
|
name = "libpipewire-module-raop-discover";
|
||||||
|
args = {
|
||||||
|
"stream.rules" = [
|
||||||
{
|
{
|
||||||
type = "ladspa";
|
matches = [
|
||||||
name = "rnnoise";
|
{
|
||||||
plugin = "${pkgs.rnnoise-plugin}/lib/ladspa/librnnoise_ladspa.so";
|
"raop.ip" = "~.*";
|
||||||
label = "noise_suppressor_mono";
|
}
|
||||||
control = {
|
];
|
||||||
"VAD Threshold (%)" = 50.0;
|
actions = {
|
||||||
#"VAD Grace Period (ms)" = 0;
|
create-stream = {
|
||||||
"Retroactive VAD Grace (ms)" = 50;
|
"stream.props" = {
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
"capture.props" = {
|
}
|
||||||
"node.name" = "capture.rnnoise_source";
|
];
|
||||||
"node.passive" = true;
|
};
|
||||||
"audio.rate" = 48000;
|
|
||||||
};
|
|
||||||
"playback.props" = {
|
|
||||||
"node.name" = "rnnoise_source";
|
|
||||||
"media.class" = "Audio/Source";
|
|
||||||
"audio.rate" = 48000;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue