Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dannluciano/84c25e82317bb431b4c61e915782c65c to your computer and use it in GitHub Desktop.
Save dannluciano/84c25e82317bb431b4c61e915782c65c to your computer and use it in GitHub Desktop.
FIx linux microfone background noise
# Microphone Realtime background noise reduction script
# author Luigi Maselli - https://grigio.org licence: AS-IS
# credits: http://askubuntu.com/questions/18958/realtime-noise-removal-with-pulseaudio
# run as: sudo && pulseaudio -k
# wget -qO - https://gist.github.com/adrianolsk/bfa32f3227dc674eff72a2008f6c0316 | sudo bash && pulseaudio -k
sudo cp /etc/pulse/default.pa /etc/pulse/default.pa.bak
sudo cat <<EOT >> /etc/pulse/default.pa
load-module module-echo-cancel source_name=noechosource sink_name=noechosink
set-default-source noechosource
set-default-sink noechosink
EOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment