ComfyUI Node
Audio Trim Silence (Voice Activity)
Trim silence from audio using torchaudio's Voice Activity Detector. Lower lp_filter_freq if you have high frequency background noise.
Audio Trim Silence (Voice Activity)
- audio
- audio
◄trigger_level7.00►
◄trigger_time0.25►
◄search_time1.0►
◄allowed_gap0.25►
◄pre_trigger_time0.00►
◄boot_time0.35►
◄noise_up_time0.10►
◄noise_down_time0.010►
◄noise_reduction_amount1.35►
◄measure_freq20.0►
◄measure_smooth_time0.40►
◄hp_filter_freq50►
◄lp_filter_freq6000►
◄hp_lifter_freq150►
◄lp_lifter_freq2000►
CategoryAudio
Inputs (16)
| Name | Type | Default | Description |
|---|---|---|---|
| audio | AUDIO | — | |
| trigger_levelopt | FLOAT | 7.00 | The measurement level used to trigger activity detection. This may need to be cahnged depending on the noise level, signal level, and other characteristics of the input audio. (Default: 7.0) |
| trigger_timeopt | FLOAT | 0.25 | The time constant (in seconds) used to help ignore short bursts of sound. (Default: 0.25) |
| search_timeopt | FLOAT | 1.0 | The amount of audio (in seconds) to search for quieter/shorter bursts of audio to include prior to the detected trigger point. (Default: 1.0) |
| allowed_gapopt | FLOAT | 0.25 | The allowed gap (in seconds) between quieter/shorter bursts of audio to include prior to the detected trigger point. (Default: 0.25) |
| pre_trigger_timeopt | FLOAT | 0.00 | The amount of audio (in seconds) to preserve before the trigger point and any found quieter/shorter bursts. (Default: 0.0) |
| boot_timeopt | FLOAT | 0.35 | estimation/reduction in order to detect the start of the wanted audio. This option sets the time for the initial noise estimate. (Default: 0.35) |
| noise_up_timeopt | FLOAT | 0.10 | for when the noise level is increasing. (Default: 0.1) |
| noise_down_timeopt | FLOAT | 0.010 | for when the noise level is decreasing. (Default: 0.01) |
| noise_reduction_amountopt | FLOAT | 1.35 | the detection algorithm (e.g. 0, 0.5, …). (Default: 1.35) |
| measure_freqopt | FLOAT | 20.0 | processing/measurements. (Default: 20.0) |
| measure_smooth_timeopt | FLOAT | 0.40 | spectral measurements. (Default: 0.4) |
| hp_filter_freqopt | FLOAT | 50 | — |
| lp_filter_freqopt | FLOAT | 6000 | Put this number down if there is high frequency background noise. |
| hp_lifter_freqopt | FLOAT | 150 | — |
| lp_lifter_freqopt | FLOAT | 2000 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| audio | AUDIO | — |