Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Noise/Echo in webRTC video chat

I have created an application using webRTC and tomcat 7. I am able to connect two client for video chat.one client is in sony laptop and other is in HP desktop PC(with Logitech webCam). Video is working fine but audio is generating too much echo. I have google multiple times but i didn't found any solution.

Can this echo problem be resolved at java script level using getUserMedia() or PeerConnection() APIs?

I have checked my browser versions both are chrome 28+.

Please help me out.

like image 518
user1249068 Avatar asked Nov 12 '22 00:11

user1249068


1 Answers

May this comment help you. A software recommendation seems the only "simple" solution. Or settings for Windows >= 7 as explained here.

Updated:

Default volume must be set to "0" until remote media stream starts flowing; use "setTimeout" to wait at least "1" second and then set volume back to "1".

Actually, noise occurs out of "huge-audio" bandwidth which happens as soon as "onaddstream" event fires.

If you check "audioInputLevel" via "chrome://webrtc-internals" you'll see its value something like "25000" as soon as "onaddstream" event fires; however in a few milliseconds later, "audioInputLevel" goes down between 1-and-150 and stays lower.

Updated at Jan 12, 2016

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

You can even set VoiceActivityDetection:false as SDP-constraints to minimize peer-level echo.

like image 137
Muaz Khan Avatar answered Nov 14 '22 23:11

Muaz Khan