Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save NoXPhasma/2a0aa3356654d89981ac0eeff2fb7fd0 to your computer and use it in GitHub Desktop.
Save NoXPhasma/2a0aa3356654d89981ac0eeff2fb7fd0 to your computer and use it in GitHub Desktop.
librnnoise_ladspa.conf
# Noise canceling source
#
# start with pipewire -c filter-chain/librnnoise_ladspa.conf
#
context.properties = {
log.level = 0
}
context.spa-libs = {
audio.convert.* = audioconvert/libspa-audioconvert
support.* = support/libspa-support
}
context.modules = [
{ name = libpipewire-module-rtkit
args = {
nice.level = -11
rt.prio = 88
rt.time.soft = 200000
rt.time.hard = 200000
}
flags = [ ifexists nofail ]
}
{ name = libpipewire-module-protocol-native }
{ name = libpipewire-module-client-node }
{ name = libpipewire-module-adapter }
{ name = libpipewire-module-filter-chain
args = {
node.name = "rnnoise_source"
node.description = "Noise Canceling source"
media.name = "Noise Canceling source"
filter.graph = {
nodes = [
{
type = ladspa
name = rnnoise
plugin = /usr/lib/ladspa/librnnoise_ladspa.so
label = noise_suppressor_stereo
control = {
"VAD Threshold (%)" 50.0
}
}
]
}
capture.props = {
node.passive = true
}
playback.props = {
media.class = Audio/Source
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment