mirror of
https://github.com/lewismoten/data-over-audio.git
synced 2026-04-21 13:37:32 +08:00
remove audio processing
This commit is contained in:
13
index.js
13
index.js
@@ -96,7 +96,18 @@ function handleListeningCheckbox(e) {
|
|||||||
}
|
}
|
||||||
if(e.target.checked) {
|
if(e.target.checked) {
|
||||||
navigator.mediaDevices
|
navigator.mediaDevices
|
||||||
.getUserMedia({ audio: true })
|
.getUserMedia({
|
||||||
|
audio: {
|
||||||
|
mandatory: {
|
||||||
|
autoGainControl: false,
|
||||||
|
echoCancellation: false,
|
||||||
|
noiseSuppression: false,
|
||||||
|
suppressLocalAudioPlayback: false,
|
||||||
|
voiceIsolation: false
|
||||||
|
},
|
||||||
|
optional: []
|
||||||
|
}
|
||||||
|
})
|
||||||
.then(handleMicrophoneOn)
|
.then(handleMicrophoneOn)
|
||||||
.catch(handleMicrophoneError)
|
.catch(handleMicrophoneError)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user