diff --git a/index.js b/index.js index 6356e2a..2e7a690 100644 --- a/index.js +++ b/index.js @@ -96,7 +96,18 @@ function handleListeningCheckbox(e) { } if(e.target.checked) { navigator.mediaDevices - .getUserMedia({ audio: true }) + .getUserMedia({ + audio: { + mandatory: { + autoGainControl: false, + echoCancellation: false, + noiseSuppression: false, + suppressLocalAudioPlayback: false, + voiceIsolation: false + }, + optional: [] + } + }) .then(handleMicrophoneOn) .catch(handleMicrophoneError) } else {