Enable acoustic echo canceller with PulseAudio

$ sudo vi /etc/pulse/system.pa

Add this in the end of file,

load-module module-echo-cancel source_name=baresip aec_method=webrtc format=s16le rate=8000 channels=1 source_name=INPUT_NAME sink_name=OUTPUT_NAME

You can find the INPUT_NAME and OUTPUT_NAME as below,

INPUT_NAME:

$ pacmd list-sources | grep 'name:.*input'
        name: <alsa_input.usb-046d_0809_0167D8AD-02.analog-mono>
        name: <alsa_input.pci-0000_00_1b.0.analog-stereo>
        name: <alsa_input.usb-PrimeSense_PrimeSense_Device-01.analog-stereo> 

OUTPUT_NAME:

$ pacmd list-sources | grep 'name:.*output'
        name: <alsa_output.pci-0000_03_00.1.hdmi-stereo.monitor>
        name: <alsa_output.pci-0000_00_1b.0.analog-stereo.monitor>
        name: <alsa_output.pci-0000_00_1b.0.analog-stereo.2.monitor>

Restart PulseAudio

    $ pulseaudio -k
    $ pulseaudio --start

References