CommonVoiceDataLoaderOptions
Options & Configuration · AiDotNet.Data.Audio.Benchmarks
Configuration options for the Mozilla Common Voice data loader.
How It Works
Common Voice is a multilingual speech corpus with ~19K+ hours across 100+ languages.
Audio is stored as MP3 files. For use with this loader, pre-convert to WAV format
(e.g., using ffmpeg: ffmpeg -i input.mp3 -ar 16000 -ac 1 output.wav).
Constructors
| Constructor | Summary |
|---|---|
CommonVoiceDataLoaderOptions() |
Properties
| Property | Summary |
|---|---|
DatasetSplit Split { get; set; } |
Dataset split to load. |
bool AutoDownload { get; set; } |
Automatically download if not present. |
double MaxDurationSeconds { get; set; } |
Maximum audio duration in seconds. |
int SampleRate { get; set; } |
Sample rate in Hz. |
int? MaxSamples { get; set; } |
Optional maximum number of samples to load. |
string DataPath { get; set; } |
Root data path. |
string Language { get; set; } |
Language code (e.g., “en”, “fr”, “de”). |
Methods
| Method | Summary |
|---|---|
void Validate() |
Validates that all option values are within acceptable ranges. |