# Echo Cancellation and other constraints

**URL:** <https://openvidu.discourse.group/t/echo-cancellation-and-other-constraints/2038>\
**Category:** How to implement?\
**Tags:** v2\
**Created:** [September 19, 2020, 9:05pm UTC](https://openvidu.discourse.group/t/echo-cancellation-and-other-constraints/2038 "2020-09-19T21:05:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Burford](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/richard_burford/32/818_2.png) [@Richard\_Burford](https://openvidu.discourse.group/u/Richard_Burford)\
**Post date:** [September 19, 2020, 9:05pm UTC](https://openvidu.discourse.group/t/echo-cancellation-and-other-constraints/2038/1 "2020-09-19T21:05:56Z")

</div>

Is there a way to implement the audio constraints, so I can disable echo cancellation and auto gain settings?

Many thanks

Richard

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [September 21, 2020, 8:28am UTC](https://openvidu.discourse.group/t/echo-cancellation-and-other-constraints/2038/2 "2020-09-21T08:28:48Z")

</div>

Sure, you can set whatever [MediaTrackConstraints](https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints) you want. OpenVidu Browser library is just a wrapper around standard Web API, and you can directly provide a video or audio MediaStreamTrack as `videoSource` or `audioSource` when initializing a Publisher. So simply provide an audio track with the desired constraints.
