Skip to content

Instantly share code, notes, and snippets.

@user5145
Last active January 25, 2019 12:27
Show Gist options
  • Save user5145/b71158958838de4f02e5b5d86cb7d26c to your computer and use it in GitHub Desktop.
Save user5145/b71158958838de4f02e5b5d86cb7d26c to your computer and use it in GitHub Desktop.
load echo cancellation module from user space
#!/usr/bin/pulseaudio -nF
# Save it as ~/.config/pulse/default.pa and configure aec_args to your needs
# load system configuration
.include /etc/pulse/default.pa
# add user modules
# for source_master run pacmd list-sources | grep -Po '(?<=name: \<).*(?=\>)'
# for sink_master run pacmd list-sinks | grep -Po '(?<=name: \<).*(?=\>)'
# drift_compensation requires sink_master to be set
load-module module-echo-cancel use_master_format=1 aec_method=webrtc aec_args="analog_gain_control=0 digital_gain_control=1 voice_detection=1 extended_filter=1 drift_compensation=0" source_master=alsa_input.pci-0000_00_1f.3.analog-stereo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment