AudioFileDataset<T>
Models & Types · AiDotNet.Data.Audio
Loads audio files from directories for audio classification and processing tasks.
Inheritance: DataLoaderBase<T> → InputOutputDataLoaderBase<T, Tensor<T>, Tensor<T>> → AudioFileDataset<T>
For Beginners
Organize your audio files into class folders (like ImageFolder), and this loader reads the raw waveforms into tensors for training.
How It Works
Supports WAV and raw PCM files. Audio is loaded as raw waveform samples and can optionally be converted to mono and normalized.
Constructors
| Constructor | Summary |
|---|---|
AudioFileDataset(AudioFileDatasetOptions options) |
Creates a new AudioFileDataset with the specified options. |
Properties
| Property | Summary |
|---|---|
IReadOnlyList<string> ClassNames { get; } |
Gets the class names discovered from directory names. |
int FeatureCount { get; } |
|
int OutputDimension { get; } |
|
int TotalCount { get; } |
|
string Description { get; } |
|
string Name { get; } |
Methods
| Method | Summary |
|---|---|
ValueTuple<IInputOutputDataLoader<T, Tensor<T>, Tensor<T>>, IInputOutputDataLoader<T, Tensor<T>, Tensor<T>>, IInputOutputDataLoader<T, Tensor<T>, Tensor<T>>> Split(double trainRatio, double validationRatio, int? seed) |