Class SilencePeriod
- Namespace
- VisioForge.Core.Types.X
- Assembly
- VisioForge.Core.dll
Represents a detected period of silence in an audio stream with precise timing information. This class captures the start time, end time, and duration of a silence segment, enabling detailed analysis of audio content for editing, quality control, or speech processing applications.
public class SilencePeriodInheritance
Inherited Members
Constructors
SilencePeriod()
Initializes a new instance of the VisioForge.Core.Types.X.SilencePeriod class with default values.
public SilencePeriod()SilencePeriod(TimeSpan, TimeSpan)
Initializes a new instance of the VisioForge.Core.Types.X.SilencePeriod class with specified times.
public SilencePeriod(TimeSpan startTime, TimeSpan endTime)Parameters
startTimeTimeSpan-
The start time of the silence period.
endTimeTimeSpan-
The end time of the silence period.
Properties
Duration
Gets the duration of the silence period. Calculated as the difference between end time and start time.
public TimeSpan Duration { get; }Property Value
EndTime
Gets or sets the end time of the silence period in the audio stream. Represents the timestamp when audio level rose above the silence threshold.
public TimeSpan EndTime { get; set; }Property Value
StartTime
Gets or sets the start time of the silence period in the audio stream. Represents the timestamp when audio level dropped below the silence threshold.
public TimeSpan StartTime { get; set; }Property Value
Methods
ToString()
Returns a string representation of the silence period with detailed timing information.
public override string ToString()Returns
- string
-
A string containing the start time, end time, and duration of the silence period.