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

7
  • does a similar issue happen when you record using other packages? do voice/video chats work?
    – xTerrene
    Apr 20, 2019 at 21:02
  • yes, the issue seems to be system-wide irregardless of the application that's used during the recording process. (thanks for your comment :) )
    – spectrop
    Apr 21, 2019 at 2:48
  • no problem! do you have the necessary drivers for your microphone? (might be redundant to ask, but i'm just going through the obvious). i'll be looking to see if there are any drivers that Ubuntu needs for a Toshiba laptop.
    – xTerrene
    Apr 21, 2019 at 4:14
  • I've checked the "additional drivers" tab under "software & updates". It states that no additional drivers are available. alsamixer states the following: Card: HDA ATI SB Chip: Realtek ALC259
    – spectrop
    Apr 21, 2019 at 18:10
  • 1
    I have used an external microphone (standard audio jack input); However, the results are the same. I guess I should buy USB headset and give that a try. Nevertheless thank you for your help!
    – spectrop
    Apr 21, 2019 at 20:16

1 Answer 1

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!

1
  • 1
    this helped me on ubuntu 20.04 on Lenovo Y540. thanks!
    – ysakiyev
    Mar 27, 2021 at 20:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .