[英]How to remove echo
I am working on app which do live stream between two android devices. 我正在开发在两个Android设备之间进行实时流传输的应用程序。 I have got pretty got results like connectivity, video stream. 我得到了诸如连接性,视频流之类的漂亮结果。 But i am not happy with sound qualtiy there is so echo and noise in sound. 但是我对声音质量不满意,声音中有回声和噪音。 This is how i am using audio track 这就是我使用音轨的方式
localMS = factory.createLocalMediaStream("ARDAMS");
if(pcParams.videoCallEnabled)
{
MediaConstraints videoConstraints = new MediaConstraints();
videoConstraints.mandatory.add(new MediaConstraints.KeyValuePair("maxHeight", height));
videoConstraints.mandatory.add(new MediaConstraints.KeyValuePair("maxWidth", width));
videoConstraints.mandatory.add(new MediaConstraints.KeyValuePair("maxFrameRate", Integer.toString(pcParams.videoFps)));
videoConstraints.mandatory.add(new MediaConstraints.KeyValuePair("minFrameRate", Integer.toString(pcParams.videoFps)));
videoSource = factory.createVideoSource(getVideoCapturer(), videoConstraints);
localMS.addTrack(factory.createVideoTrack("ARDAMSv0", videoSource));
}
AudioSource audioSource = factory.createAudioSource(new MediaConstraints());
localMS.addTrack(factory.createAudioTrack("ARDAMSa0", audioSource));
mListener.onLocalStream(localMS);
So i am looking for way to remove echo and noise cancellation. 所以我正在寻找消除回声和噪声消除的方法。 any help and guidance will be very much appreciated. 任何帮助和指导将不胜感激。
Possible solutions to solve sound quality problems: 解决声音质量问题的可能解决方案:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.