You can customize the audio capture by setting audio constraints on a LocalAudioTrack. Note that some audio constraints such as noiseSuppression and echoCancellation are set to true
by default.
1const { connect, createLocalAudioTrack, createLocalTracks } = require('twilio-video');23// Option 14createLocalTracks({5audio: { noiseSuppression: false, echoCancellation: false },6video: true7}).then(localTracks => {8return connect('$TOKEN', {9name: 'my-room-name',10tracks: localTracks11});12}).then(room => {13console.log(`Connected to Room: ${room.name}`);14});1516// Option 217connect('$TOKEN', {18audio: { noiseSuppression: false, echoCancellation: false },19name: 'my-room-name',20video: true21}).then(room => {22console.log(`Connected to Room: ${room.name}`);23});2425// Option 326createLocalAudioTrack({27noiseSuppression: false,28echoCancellation: false29}).then(localTrack => {30console.log(`Created LocalAudioTrack: ${localTrack.name}`);31});