Skip to main content

AudioNoiseGateFilter

Electron APIs / recorder / AudioNoiseGateFilter

A noise gate filter used to attenuate signals that fall below a certain threshold. It is primarily used to remove background noise during silent passages.

Example

const gate: AudioNoiseGateFilter = {
id: "noise_gate_filter",
parameters: {
open_threshold: -40,
close_threshold: -45,
hold_time: 200,
},
};

Extends

Properties

PropertyTypeDescriptionOverrides
id"noise_gate_filter"A unique identifier for the filter instance.AudioFilterBase.id
parameters?objectConfiguration settings for the noise gate.AudioFilterBase.parameters
parameters.attack_time?numberThe time (in ms) it takes for the gate to fully open once the signal exceeds the open threshold. Valid range: [0, 10000]-
parameters.close_threshold?numberThe level (in dB) at which the gate closes, silencing the signal. Valid range: [-96.00, 0.00]-
parameters.hold_time?numberThe duration (in ms) the gate remains fully open after the signal drops below the close threshold before the release phase begins. Valid range: [0, 10000]-
parameters.open_threshold?numberThe level (in dB) at which the gate opens, allowing the signal to pass. Valid range: [-96.00, 0.00]-
parameters.release_time?numberThe time (in ms) it takes for the gate to fully close after the hold period. Valid range: [0, 10000]-