Table of Contents

Class AudioEventDetectorOptions

Namespace
AiDotNet.Audio.Classification
Assembly
AiDotNet.dll

Options for audio event detection.

public class AudioEventDetectorOptions
Inheritance
AudioEventDetectorOptions
Inherited Members

Properties

CustomLabels

Custom event labels (optional).

public string[]? CustomLabels { get; set; }

Property Value

string[]

FMax

Maximum frequency for mel filterbank. Default: 8000.

public int FMax { get; set; }

Property Value

int

FMin

Minimum frequency for mel filterbank. Default: 50.

public int FMin { get; set; }

Property Value

int

FftSize

FFT size. Default: 512.

public int FftSize { get; set; }

Property Value

int

HopLength

Hop length. Default: 160.

public int HopLength { get; set; }

Property Value

int

ModelPath

Path to ONNX model file (optional).

public string? ModelPath { get; set; }

Property Value

string

NumMels

Number of mel bands. Default: 64.

public int NumMels { get; set; }

Property Value

int

OnnxOptions

ONNX model options.

public OnnxModelOptions OnnxOptions { get; set; }

Property Value

OnnxModelOptions

SampleRate

Audio sample rate. Default: 16000.

public int SampleRate { get; set; }

Property Value

int

Threshold

Confidence threshold for event detection. Default: 0.3.

public double Threshold { get; set; }

Property Value

double

WindowOverlap

Window overlap ratio (0-1). Default: 0.5.

public double WindowOverlap { get; set; }

Property Value

double

WindowSize

Window size in seconds. Default: 1.0.

public double WindowSize { get; set; }

Property Value

double