We are trying to enable the already implemented echo cancellation technology.
Scenario:
Two android devices are successfully connected and voice is perfectly fine on both devices.
Device-1 activate/deactivate Speakerphone:
AudioManager audioManager = ((AudioManager) getSystemService(AUDIO_SERVICE));
audioManager.setSpeakerphoneOn(false);
Device-2 Hears themselves when they talk (Facing this Issue)
Any help or guidance will be well appreciated.