disable undesired features

This commit is contained in:
Jose B
2023-08-08 05:42:23 -05:00
parent 04d6a2cfae
commit 8397ca8c29
2 changed files with 7 additions and 2 deletions

View File

@@ -97,7 +97,11 @@ export default function Recorder(props) {
document.getElementById("play-btn").disabled = false;
} else {
const stream = await navigator.mediaDevices.getUserMedia({
audio: { deviceId },
audio: {
deviceId,
noiseSuppression: false,
echoCancellation: false,
},
});
await record.startRecording(stream);
props.setStream(stream);