Table of Contents

Class GenreClassifierOptions

Namespace
AiDotNet.Audio.Classification
Assembly
AiDotNet.dll

Options for genre classification.

public class GenreClassifierOptions
Inheritance
GenreClassifierOptions
Inherited Members

Properties

CustomGenres

Custom genre labels (optional).

public string[]? CustomGenres { 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

NumMfccs

Number of MFCCs to extract. 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