Table of Contents

Class SceneClassifierOptions

Namespace
AiDotNet.Audio.Classification
Assembly
AiDotNet.dll

Options for acoustic scene classification.

public class SceneClassifierOptions
Inheritance
SceneClassifierOptions
Inherited Members

Properties

CustomScenes

Custom scene labels (optional).

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

Property Value

string[]

FftSize

FFT size. Default: 2048.

public int FftSize { get; set; }

Property Value

int

HopLength

Hop length. Default: 512.

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: 128.

public int NumMels { get; set; }

Property Value

int

NumMfccs

Number of MFCCs. Default: 20.

public int NumMfccs { get; set; }

Property Value

int

OnnxOptions

ONNX model options.

public OnnxModelOptions OnnxOptions { get; set; }

Property Value

OnnxModelOptions

SampleRate

Audio sample rate. Default: 22050.

public int SampleRate { get; set; }

Property Value

int

TopK

Number of top predictions to return. Default: 3.

public int TopK { get; set; }

Property Value

int