回声和噪音声WebRTC技术的android [英] Echo and noise in sound webRTC android

查看:4824
本文介绍了回声和噪音声WebRTC技术的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作WebRTC中我所做的本地网络中的两台Android设备,它正在pretty对我很好,除了音质问题之间的实时流有噪音和回声的声音。如果我使用免提一端,它变得更好,但我不希望使用免提。

I am working on webRTC i am doing live stream between two android devices on local network it is working pretty fine for me except the sound quality issue there is noise and echo in sound. If i use hands-free on one end it gets better but i don't want to use hands-free.

那么,如何可以改善音质,什么技术都还有改善音质。它还表示,WebRTC技术具有内置的,如果它比为什么回声尚没有回音消除功能。

So how can i improve the sound quality, what techniques are there to improve the sound quality. It also said the webRTC has echo cancellation functionality built in if it's than why echo is still there.

推荐答案

您可以尝试在创建音频源添加特殊的音频约束。它不应该是这样的:

You can try to add special audio constraints when you are creating audio source. It should looks like:

MediaConstraints audioConstarints = new MediaConstraints();
audioConstarints.mandatory.add(new MediaConstraints.KeyValuePair("googNoiseSuppression", "true"));
audioConstarints.mandatory.add(new MediaConstraints.KeyValuePair("googEchoCancellation", "true"));

有很多相关的音频特性媒体的限制,我建议他们尝试不同的组合,完整的列表,你可以在这里找到<一个href=\"https://chromium.googlesource.com/external/webrtc/+/master/talk/app/webrtc/mediaconstraintsinterface.cc\" rel=\"nofollow\">https://chromium.googlesource.com/external/webrtc/+/master/talk/app/webrtc/mediaconstraintsinterface.cc

There is a lot of media constraints related to audio features and I suggest to try different combinations of them, full list you can find here https://chromium.googlesource.com/external/webrtc/+/master/talk/app/webrtc/mediaconstraintsinterface.cc

这篇关于回声和噪音声WebRTC技术的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆