noise-gate
0.0.3 • Public • Published Noise Gate
To filter out the noise from the audio source. This is simply a compressor and a filter with a pre-adjusted values on the setting.
Get Start
let noiseGate = new NoiseGateNode(audioContext);
source.connect(noiseGate);
noiseGate.connect(audioContext.destination);
Example
const audioContext = new AudioContext();
navigator.mediaDevices.getUserMedia({ audio: true })
.then(function(stream) {
let source = this.context.createMediaStreamSource(stream);
let noiseGate = new NoiseGateNode(audioContext);
source.connect(noiseGate);
noiseGate.connect(audioContext.destination);
});
Dependencies (0)
Dev Dependencies (6)
Package Sidebar
Install
Weekly Downloads