Noise cancelation with PulseAudio

screencast | record-audio | record video | noise cancelation

as root

cd /etc/pulse/
mv -i default.pa default.pa.dist
grep -vE '^#|^$' default.pa.dist > default.pa.clean
grep -vE '^#|^$' default.pa.dist > default.pa
vi default.pa

.ifexists module-echo-cancel.so
load-module module-echo-cancel aec_method=webrtc source_name=echocancel sink_name=echocancel1
set-default-source echocancel
set-default-sink echocancel1
.endif

as user

pulseaudio -k

manually

pactl unload-module module-echo-cancel
pactl load-module module-echo-cancel aec_method=webrtc source_name=echocancel sink_name=echocancel1
pacmd set-default-source echocancel
pacmd set-default-sink echocancel1

also

pactl set-source-volume alsa_input.usb-BIRD_UM1_BIRD_UM1-00.mono-fallback 100%
pactl set-source-volume echocancel 100%

ready to go

you now got a new microphone and monitor

as user

pactl list short sources

resources

https://oz9aec.net/software/gstreamer/pulseaudio-device-names

https://www.linuxuprising.com/2020/09/how-to-enable-echo-noise-cancellation.html

https://trac.ffmpeg.org/wiki/Capture/PulseAudio

https://trac.ffmpeg.org/wiki/AudioChannelManipulation

https://github.com/aiortc/aiortc/issues/363


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun