Fixing audio crackling and adding noise suppression
This commit is contained in:
parent
6df4d4169f
commit
a84c7177fb
2 changed files with 38 additions and 0 deletions
5
config/pipewire/pipewire.conf.d/10-clock-rates.conf
Normal file
5
config/pipewire/pipewire.conf.d/10-clock-rates.conf
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
context.properties = {
|
||||||
|
# default.clock.rate = 48000
|
||||||
|
default.clock.allowed-rates = [ 44100 48000 ]
|
||||||
|
default.clock.min-quantum = 16
|
||||||
|
}
|
33
config/pipewire/pipewire.conf.d/99-input-denoising.conf
Normal file
33
config/pipewire/pipewire.conf.d/99-input-denoising.conf
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
context.modules = [
|
||||||
|
{ name = libpipewire-module-filter-chain
|
||||||
|
args = {
|
||||||
|
node.description = "Noise Canceling source"
|
||||||
|
media.name = "Noise Canceling source"
|
||||||
|
filter.graph = {
|
||||||
|
nodes = [
|
||||||
|
{
|
||||||
|
type = ladspa
|
||||||
|
name = rnnoise
|
||||||
|
plugin = /home/siina/.local/share/linux-rnnoise/ladspa/librnnoise_ladspa.so
|
||||||
|
label = noise_suppressor_mono
|
||||||
|
control = {
|
||||||
|
"VAD Threshold (%)" = 75.0
|
||||||
|
"VAD Grace Period (ms)" = 200
|
||||||
|
"Retroactive VAD Grace (ms)" = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
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…
Reference in a new issue