I am working on video chat app that works on local WiFi, i am using speaker of device so i am facing echo problem. So my question is how can i cancel the echo this is my code for the audio track
AudioSource audioSource = factory.createAudioSource(new MediaConstraints());
localMS.addTrack(factory.createAudioTrack("ARDAMSa0", audioSource));
So what can i do here to improve the sound quality any guidelines will be highly appreciated.
I heard about opus-codec library but didn't found any help regarding about that and it's feedback???