Table of Contents

Class SilenceDetectionData

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

Represents real-time silence detection data provided through callback events. This class contains information about the current audio level and whether silence is currently being detected, enabling applications to respond immediately to silence detection state changes.

public class SilenceDetectionData

Inheritance

Inherited Members

Constructors

SilenceDetectionData()

Initializes a new instance of the VisioForge.Core.Types.X.SilenceDetectionData class with default values.

public SilenceDetectionData()

SilenceDetectionData(TimeSpan, bool, double, double)

Initializes a new instance of the VisioForge.Core.Types.X.SilenceDetectionData class with specified values.

public SilenceDetectionData(TimeSpan timestamp, bool isSilent, double levelDb, double thresholdDb)

Parameters

timestamp TimeSpan

The timestamp in the audio stream.

isSilent bool

True if silence is detected.

levelDb double

The current audio level in decibels.

thresholdDb double

The silence threshold in decibels.

Properties

IsSilent

Gets or sets a value indicating whether silence is currently detected. True if the audio level is below the configured threshold, false otherwise.

public bool IsSilent { get; set; }

Property Value

bool

LevelDb

Gets or sets the current audio level in decibels (dB). This represents the RMS (Root Mean Square) level of the audio signal. Values are typically negative, with lower values indicating quieter audio.

public double LevelDb { get; set; }

Property Value

double

ThresholdDb

Gets or sets the configured silence threshold in decibels (dB). Audio levels below this threshold are considered silence.

public double ThresholdDb { get; set; }

Property Value

double

Timestamp

Gets or sets the timestamp of this detection event in the audio stream.

public TimeSpan Timestamp { get; set; }

Property Value

TimeSpan