Disable autoGainControl, echoCancellation and noiseSuppression in recorder

master
kksteini 2022-05-20 23:16:11 +00:00 committed by Kris Gesling
parent ae23949ec0
commit b785638dc0
1 changed files with 7 additions and 1 deletions

View File

@ -55,7 +55,13 @@ class Recorder extends React.Component {
navigator.webkitGetUserMedia);
if (navigator.getUserMedia && window.MediaRecorder) {
const constraints = {audio: true};
const constraints = {
audio: {
echoCancellation: false,
autoGainControl: false,
noiseSuppression: false,
}
};
this.chunks = [];
const { blobOpts, onStop, onError, mediaOpts, onPause, onResume, onStart, gotStream } = this.props;