Class AudioAnalyzer
Provides audio analysis functionality including RMS level, peak level, and silence detection for audio files.
public class AudioAnalyzer
- Inheritance
-
AudioAnalyzer
- Inherited Members
Constructors
AudioAnalyzer()
public AudioAnalyzer()
Fields
LowNoiseMicSilenceThreshold
Silence threshold value for low-noise microphone recordings.
public static readonly double LowNoiseMicSilenceThreshold
Field Value
NormalMicSilenceThreshold
Default silence threshold value for normal microphone recordings.
public static readonly double NormalMicSilenceThreshold
Field Value
Properties
AnalysisDuration
Gets or sets the duration of the analyzed portion of the file.
public TimeSpan AnalysisDuration { get; set; }
Property Value
ContainsInternalSilence
Gets or sets a value indicating whether internal silence chunks were detected.
public bool ContainsInternalSilence { get; set; }
Property Value
ErrorDescription
Gets the last error description if the last method call returned false.
public string ErrorDescription { get; }
Property Value
FileCache
Gets or sets the file cache for optimized file access.
public FileCache FileCache { get; set; }
Property Value
FileDuration
Gets or sets the total duration of the analyzed file.
public TimeSpan FileDuration { get; set; }
Property Value
PeakSignal
Gets or sets the peak signal level detected during analysis.
public double PeakSignal { get; set; }
Property Value
RmsSignal
Gets or sets the calculated RMS (Root Mean Square) signal level.
public double RmsSignal { get; set; }
Property Value
SampleCount
Gets or sets the total number of audio samples analyzed.
public long SampleCount { get; set; }
Property Value
SilenceThreshold
Gets or sets the silence detection threshold.
public double SilenceThreshold { get; set; }
Property Value
TotalSilenceDuration
Gets or sets the total duration of detected silence in the analyzed audio.
public TimeSpan TotalSilenceDuration { get; set; }
Property Value
Methods
Execute(string)
Executes audio analysis on the specified file.
public Task<bool> Execute(string filePath)
Parameters
filePathstringThe path to the audio file to analyze.
Returns
Execute(InputFileItem)
Executes audio analysis on the specified input file item.
public Task<bool> Execute(InputFileItem inputFile)
Parameters
inputFileInputFileItemThe input file item to analyze.