且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

回声和噪音声WebRTC技术的android

更新时间:2023-12-05 16:19:16

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

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"));

有很多相关的音频特性媒体的限制,我建议他们尝试不同的组合,完整的列表,你可以在这里找到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