Table of Contents

Class AudioAnalyzer

Namespace
VAST.File.Utility
Assembly
VAST.File.dll

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

double

NormalMicSilenceThreshold

Default silence threshold value for normal microphone recordings.

public static readonly double NormalMicSilenceThreshold

Field Value

double

Properties

AnalysisDuration

Gets or sets the duration of the analyzed portion of the file.

public TimeSpan AnalysisDuration { get; set; }

Property Value

TimeSpan

ContainsInternalSilence

Gets or sets a value indicating whether internal silence chunks were detected.

public bool ContainsInternalSilence { get; set; }

Property Value

bool

ErrorDescription

Gets the last error description if the last method call returned false.

public string ErrorDescription { get; }

Property Value

string

FileCache

Gets or sets the file cache for optimized file access.

public FileCache FileCache { get; set; }

Property Value

FileCache

FileDuration

Gets or sets the total duration of the analyzed file.

public TimeSpan FileDuration { get; set; }

Property Value

TimeSpan

PeakSignal

Gets or sets the peak signal level detected during analysis.

public double PeakSignal { get; set; }

Property Value

double

RmsSignal

Gets or sets the calculated RMS (Root Mean Square) signal level.

public double RmsSignal { get; set; }

Property Value

double

SampleCount

Gets or sets the total number of audio samples analyzed.

public long SampleCount { get; set; }

Property Value

long

SilenceThreshold

Gets or sets the silence detection threshold.

public double SilenceThreshold { get; set; }

Property Value

double

TotalSilenceDuration

Gets or sets the total duration of detected silence in the analyzed audio.

public TimeSpan TotalSilenceDuration { get; set; }

Property Value

TimeSpan

Methods

Execute(string)

Executes audio analysis on the specified file.

public Task<bool> Execute(string filePath)

Parameters

filePath string

The path to the audio file to analyze.

Returns

Task<bool>

A task that returns true if analysis succeeded, false otherwise.

Execute(InputFileItem)

Executes audio analysis on the specified input file item.

public Task<bool> Execute(InputFileItem inputFile)

Parameters

inputFile InputFileItem

The input file item to analyze.

Returns

Task<bool>

A task that returns true if analysis succeeded, false otherwise.