Add script to enable noise cancelation in PA

main
Ian Mancini 5 years ago
parent d25ba37b05
commit cf0f62a9db

@ -0,0 +1,16 @@
#!/bin/sh
set -uo pipefail
if (( $EUID != 0 )); then
echo "Should be run as root"
exit 1
fi
cat >> /etc/pulse/default.pa <<EOF
### Enable Echo/Noise-Cancellation
load-module module-echo-cancel use_master_format=1 aec_method=webrtc aec_args="analog_gain_control=0\ digital_gain_control=1" source_name=echoCancel_source sink_name=echoCancel_sink
set-default-source echoCancel_source
set-default-sink echoCancel_sink
EOF
Loading…
Cancel
Save