Echo and noise in sound webRTC android

前端 未结 3 1161
天命终不由人
天命终不由人 2020-12-20 16:48

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

3条回答
  •  囚心锁ツ
    2020-12-20 17:23

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

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

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

提交回复
热议问题