clean_audio_input
Set up a complete mic-cleanup filter chain (noise gate, noise suppression, compressor) on an OBS audio input, skipping any filters that already exist.
Instructions
Set up a standard mic-cleanup filter chain in one call: Noise Gate -> Noise Suppression -> Compressor, in that order (order matters — gate first cuts room noise between words, suppression reduces steady background hiss while you're talking, compressor evens out what's left).
Skips any filter kind that already exists on the input by that name instead of duplicating it. Removing a stage later is a normal remove_source_filter call — this only handles the one-shot setup.
Args: input_name: Name of the mic/audio input to clean up. gate/suppression/compressor: Which stages to add (all on by default). gate_open_threshold_db: Gate opens above this level. Should sit slightly below your voice level. Default -26 dB. gate_close_threshold_db: Gate closes below this level. Should sit above the room's noise floor, 5-8 dB below open threshold. Default -32 dB. suppression_method: "rnnoise" (better quality, default) or "speex" (lighter weight, older). compressor_ratio: Compression ratio, 1.0-32.0. Default 3.0 (gentle). compressor_threshold_db: Level compression kicks in at, -60..0 dB. Default -18 dB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gate | No | ||
| compressor | No | ||
| input_name | Yes | ||
| suppression | No | ||
| compressor_ratio | No | ||
| suppression_method | No | rnnoise | |
| gate_open_threshold_db | No | ||
| compressor_threshold_db | No | ||
| gate_close_threshold_db | No |