4

I’m using Ubuntu 18.04 installed on a laptop (Toshiba Satellite L675D-S7052) with an internal microphone. When I use the terminal to record a sound sox -t alsa default ./recording.wav, or use discord, I can hear a loud crackling / popping noise during playback. I’ve tried the many options (noise / echo canceling) by editing the etc/pulse/default.pa file with no success.

I’ve also tried lowering the microphone input volume under “settings”, but regardless the input level bar still jumps randomly in a very quiet room.

Any ideas?

Thanks in advance.

Edit: Audio and video files play without any distortion. The microphone worked fine with Windows 10. I've also tried an external microphone that yielded the same results.

Microphone settings

spectrop
  • 41
  • 1
  • 5

1 Answers1

1

I found this solution Video , and it worked for me.

Open Terminal and run:

sudo nano /etc/pulse/default.pa

Add these lines at the end of the file:

### Enable Echo/Noise-Cancelation
load-module module-echo-cancel 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

exit from text editor with ctrl+x and save file.

run

 pulseaudio -k
 pulseaudio --start

restart the system.

Done!