Skip to content

Commit b785638

Browse files
kksteinikrisgesling
authored andcommitted
Disable autoGainControl, echoCancellation and noiseSuppression in recorder
1 parent ae23949 commit b785638

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

frontend/src/App/components/Recorder.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,13 @@ class Recorder extends React.Component {
5555
navigator.webkitGetUserMedia);
5656

5757
if (navigator.getUserMedia && window.MediaRecorder) {
58-
const constraints = {audio: true};
58+
const constraints = {
59+
audio: {
60+
echoCancellation: false,
61+
autoGainControl: false,
62+
noiseSuppression: false,
63+
}
64+
};
5965
this.chunks = [];
6066
const { blobOpts, onStop, onError, mediaOpts, onPause, onResume, onStart, gotStream } = this.props;
6167

0 commit comments

Comments
 (0)