From dc18558d5a3ebad9214e5903618a2c0a97ac8787 Mon Sep 17 00:00:00 2001 From: Lewis Moten Date: Wed, 1 May 2024 14:37:23 -0400 Subject: [PATCH] remove audio processing --- index.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 {