feat: pipewire echo canceling

This commit is contained in:
hesam-init 2024-11-01 19:11:58 +03:30
parent ec61eb2ca5
commit ab34086fcc
2 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,22 @@
context.modules = [
{
name = libpipewire-module-echo-cancel
args = {
library.name = aec/libspa-aec-webrtc
node.latency = 1024/48000
monitor.mode = false
capture.props = {
node.name = "Echo Cancellation Capture"
}
source.props = {
node.name = "Echo Cancellation Source"
}
sink.props = {
node.name = "Echo Cancellation Sink"
}
playback.props = {
node.name = "Echo Cancellation Playback"
}
}
}
]

View file

@ -0,0 +1,34 @@
# 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/hesam/Pipewire/linux-rnnoise/ladspa/librnnoise_ladspa.so
# label = noise_suppressor_mono
# control = {
# "VAD Threshold (%)" = 50.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
# }
# }
# }
# ]