简体   繁体   中英

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.

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.

避免本地流噪声的解决方案是,只需转到你的html文件,其中元素就在那里,只需添加muted =“muted”。这样可以避免本地流的噪声,直到远程流启动

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

在用于流式传输的视频标签中添加属性muted =“muted”将解决此问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM