Table of Contents

Class RemoveSilenceAudioEffect

Namespace
VisioForge.Core.Types.X.AudioEffects
Assembly
VisioForge.Core.dll

Audio effect for automatic silence detection and removal. This effect analyzes audio streams to identify sections where the signal level falls below a specified threshold and either removes these sections completely or reduces their volume. Useful for cleaning up recordings, podcasts, and voice content by eliminating unwanted silent gaps. Implements the VisioForge.Core.Types.X.AudioEffects.BaseAudioEffect.

public class RemoveSilenceAudioEffect : BaseAudioEffect, ISharedAudioEffectX

Inheritance

Implements

Inherited Members

Constructors

RemoveSilenceAudioEffect(string)

Initializes a new instance of the VisioForge.Core.Types.X.AudioEffects.RemoveSilenceAudioEffect class.

public RemoveSilenceAudioEffect(string name)

Parameters

name string

The unique name for this audio effect instance.

RemoveSilenceAudioEffect(string, double, bool)

Initializes a new instance of the VisioForge.Core.Types.X.AudioEffects.RemoveSilenceAudioEffect class with custom threshold and squash settings.

public RemoveSilenceAudioEffect(string name, double threshold, bool squash)

Parameters

name string

The unique name for this audio effect instance.

threshold double

The silence detection threshold (0.0 to 1.0).

squash bool

Whether to remove silent sections completely (true) or reduce their level (false).

Properties

Squash

Gets or sets the squash mode for silence handling. When enabled (true), silent sections are completely removed from the output stream. When disabled (false), silent sections are reduced in level but timing is preserved. Squash mode is useful for speech processing where gaps can be eliminated entirely.

public bool Squash { get; set; }

Property Value

bool

Threshold

Gets or sets the silence detection threshold. Audio levels below this threshold will be considered as silence. Values range from 0.0 (complete silence only) to 1.0 (no silence detection). Lower values are more sensitive to quiet sounds, higher values require louder audio to avoid removal.

public double Threshold { get; set; }

Property Value

double

See Also