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 SilenceDetectionDataInheritance
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
timestampTimeSpan?-
The timestamp in the audio stream, or
nullwhen unknown. isSilentbool-
True if silence is detected.
levelDbdouble-
The current audio level in decibels.
thresholdDbdouble-
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
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
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
Timestamp
Gets or sets the timestamp of this detection event in the audio stream, or null when the element could not place the measurement on the timeline. The level and the silence state on the same object are valid either way.
public TimeSpan? Timestamp { get; set; }