-
Notifications
You must be signed in to change notification settings - Fork 225
Echo cancellation
lawl edited this page Oct 14, 2020
·
3 revisions
PulseAudio ships with an echo cancellation module. You can use NoiseTorch in conjunction with echo cancellation.
First, set the input and output devices to their base versions. Then, make sure the echo cancel module is unloaded (an error here isn't an issue):
pactl unload-module module-echo-cancel
Load the echo cancel module:
pactl load-module module-echo-cancel use_master_format=1 aec_method=webrtc aec_args="analog_gain_control=0\ digital_gain_control=1\ noise_suppression=1" source_name=echoCancel_source sink_name=echoCancel_sink
Set your output device to the echo cancelled sink:
pacmd set-default-sink echoCancel_sink
Stop any existing Noisetorch instance, via the UI or command-line:
noisetorch -u
Start NoiseTorch with the echo cancelled source, via the UI or command-line:
noisetorch -i -s "echoCancel_source"