Skip to content

Instantly share code, notes, and snippets.

@shitpoet
Created November 25, 2023 22:15
Show Gist options
  • Save shitpoet/8c398157814cd56c8511e4d51311d052 to your computer and use it in GitHub Desktop.
Save shitpoet/8c398157814cd56c8511e4d51311d052 to your computer and use it in GitHub Desktop.
rnn-voice filter-chain module conf for pipewire
context.modules = [
{ name = libpipewire-module-filter-chain
args = {
node.description = "rnn-voice"
media.name = "rnn-voice"
filter.graph = {
nodes = [
{
type = ladspa
name = rnnoise
plugin = /home/ors/bin/lib/librnnoise_ladspa.so
label = noise_suppressor_mono
control = {
#"VAD Threshold (%)" = 50.0
"VAD Threshold (%)" = 25.0
"VAD Grace Period (ms)" = 300
"Retroactive VAD Grace (ms)" = 40
}
}
]
}
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
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment