I am using Rpi-Webrtc-streamer for webrtc on raspberry pi with usb sound card connected to audio amplifier for speakers and electret microphone. I am able to run webrtc correctly but with issue of mic catching echo from speaker. I have tried to enable echo processing as provided by library but didn't work. Echo is not at all removed. In fact there are no change invoice quality by any of audio processing.

I have also tried using this library for software echo cancellation but it is not working with webrtc streamer. Is there any way to work around the issue of echo as it is very important for us to remove it.

1 Answer 1


There is an option that the AEC (Acoustic Echo Cancellation) you are trying to use is not capable of handling the echo tail in your system. I suggest to start by measuring the echo tail in your system. The following post will guide you how to measure the echo tail.

  • so if i calculate my echo tail to be 200 ms, there is any way to reduce it via software?
    – Akshit
    Jun 11, 2019 at 5:47
  • No. In this case you should look for an echo cancellation software that supports 200ms.
    – Tim
    Jun 11, 2019 at 6:36
  • I am using above webrtc library. How to make echo cancellation work before that? I cannot modify code of library right now. Is that possible?
    – Akshit
    Jun 11, 2019 at 6:51
  • webrtc is open source. You can download source code and modify it per your requirements. Please note that modifying the AEC engine is not a simple task.
    – Tim
    Jun 11, 2019 at 7:44
  • What does AEC mean?
    – Ingo
    Jun 13, 2019 at 10:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.