简体   繁体   English

如何减少WebRTC应用程序中的音频噪声

[英]How to reduce audio noise in a WebRTC app

I'm working on video chatting application using peer to peer WebRTC approach where video looks fine but audio is having some extra noise occurring. 我正在使用对等WebRTC方法开发视频聊天应用程序,其中视频看起来不错,但是音频中会产生一些额外的噪音。

Here is my code: 这是我的代码:

navigator.getUserMedia({video: true, audio:true},function(stream){},function(error){});

Any help is much appreciated! 任何帮助深表感谢!

What kind of noise are we talking about? 我们在谈论什么噪音? Is it ambient noise (from surrounding)? 是环境噪声(来自周围环境)吗? in which case you may want to get a better microphone. 在这种情况下,您可能需要一个更好的麦克风。 Is your audio clear and remote audio is noisy? 您的音频清晰吗?远程音频是否嘈杂? You will need to check conditions over there too. 您也需要检查那里的条件。

Or, are we talking about noise when audio is passed through webRTC? 或者,我们是在谈论音频通过webRTC传递时的噪声吗? You may want to pass audio through browser defined filters. 您可能希望通过浏览器定义的过滤器传递音频。 See firefox examples here . 在此处查看Firefox示例。 Note that it will be browser dependent. 请注意,它将取决于浏览器。 You may find similar example for Chrome etc. 您可能会找到类似的Chrome浏览器示例。

Or you will need to pass the audio-stream through external filters that can fix the audio quality both at transmitting and receiving end. 或者,您将需要使音频流通过外部滤波器,以固定发送和接收端的音频质量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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