AudioFileDatasetOptions
Options & Configuration · AiDotNet.Data.Audio
Configuration options for the AudioFileDataset.
Constructors
| Constructor | Summary |
|---|---|
AudioFileDatasetOptions() |
Properties
| Property | Summary |
|---|---|
bool Mono { get; set; } |
Whether to convert to mono. |
bool Normalize { get; set; } |
Whether to normalize audio values to [-1, 1]. |
bool UseDirectoryLabels { get; set; } |
Whether class labels are determined by subdirectory names. |
double DurationSeconds { get; set; } |
Maximum duration in seconds. |
int SampleRate { get; set; } |
Target sample rate in Hz. |
int? MaxSamples { get; set; } |
Optional maximum number of samples to load. |
int? RandomSeed { get; set; } |
Optional random seed for reproducible sampling. |
string RootDirectory { get; set; } |
Root directory containing audio files or class subdirectories. |
string[] Extensions { get; set; } |
File extensions to include. |