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
| Property | Type | Description | Overrides |
|---|---|---|---|
id | "noise_gate_filter" | A unique identifier for the filter instance. | AudioFilterBase.id |
parameters? | object | Configuration settings for the noise gate. | AudioFilterBase.parameters |
parameters.attack_time? | number | The 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? | number | The level (in dB) at which the gate closes, silencing the signal. Valid range: [-96.00, 0.00] | - |
parameters.hold_time? | number | The 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? | number | The level (in dB) at which the gate opens, allowing the signal to pass. Valid range: [-96.00, 0.00] | - |
parameters.release_time? | number | The time (in ms) it takes for the gate to fully close after the hold period. Valid range: [0, 10000] | - |