如何删除回声

时间:2015-04-06 10:51:06

标签: android webrtc libjingle echo-cancellation

我正在研究在两个Android设备之间进行直播的应用程序。我有很好的连接,视频流等结果。但我对声音质量不满意,声音中有回声和噪音。这就是我使用音轨的方式

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

所以我正在寻找消除回声和噪音消除的方法。任何帮助和指导将非常感谢。

1 个答案:

答案 0 :(得分:0)

解决音质问题的可能解决方案: