Disable autoGainControl, echoCancellation and noiseSuppression in recorder
parent
ae23949ec0
commit
b785638dc0
|
@ -55,7 +55,13 @@ class Recorder extends React.Component {
|
||||||
navigator.webkitGetUserMedia);
|
navigator.webkitGetUserMedia);
|
||||||
|
|
||||||
if (navigator.getUserMedia && window.MediaRecorder) {
|
if (navigator.getUserMedia && window.MediaRecorder) {
|
||||||
const constraints = {audio: true};
|
const constraints = {
|
||||||
|
audio: {
|
||||||
|
echoCancellation: false,
|
||||||
|
autoGainControl: false,
|
||||||
|
noiseSuppression: false,
|
||||||
|
}
|
||||||
|
};
|
||||||
this.chunks = [];
|
this.chunks = [];
|
||||||
const { blobOpts, onStop, onError, mediaOpts, onPause, onResume, onStart, gotStream } = this.props;
|
const { blobOpts, onStop, onError, mediaOpts, onPause, onResume, onStart, gotStream } = this.props;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue