WebRTC video chat noise / echo

I created an application using webRTC and tomcat 7. I can connect two clients for video chat. One client is on a sony laptop and the other is on an HP desktop PC (with a Logitech webcam). The video works fine, but the sound generates too much echo. I have Google several times, but I have not found any solution.

Is it possible to solve this echo problem at the java script level using getUserMedia () or PeerConnection () API?

I checked my browser versions as chrome 28+.

Please help me.

+4
source share
3 answers

May this comment help you. Software recommendation seems to be the only “ simple " solution. Or settings for Windows> = 7 , as described here .

Updated:

The default level should be set to “ 0 ” until the media stream starts to stream; use "setTimeout" to wait at least " 1 " and then set the volume to " 1 ".

In fact, noise arises from the "huge audio" bandwidth that occurs as soon as the onaddstream event fires.

If you check " audioInputLevel " through " chrome: // webrtc-internals ", you will see its value approximately like " 25000 " as soon as the onaddstream event fires ; however, after a few milliseconds, " audioInputLevel " falls between 1 and-150 and remains lower.

Updated January 12, 2016

This document may help: http://www.slideshare.net/MuazKhan/echo-in-webrtc-why

You can even set VoiceActivityDetection:false as SDP restrictions to minimize the echo level at the peer level.

+1
source

to avoid local stream noise, just go to your html file where the element is located and just add muted = "muted". This will avoid local stream noise before starting a remote stream.

0
source

You must add the muted="muted" attribute to the video element to which you are transmitting the local video. In this case, you will hear the sound of the remote peer video, but not the local video.

0
source

Source: https://habr.com/ru/post/1496121/


All Articles