CommonVoiceDataLoader<T>

Models & Types · AiDotNet.Data.Audio.Benchmarks

Loads the Mozilla Common Voice multilingual speech dataset (19K+ hours, 100+ languages).

Inheritance: DataLoaderBase<T> → InputOutputDataLoaderBase<T, Tensor<T>, Tensor<T>> → CommonVoiceDataLoader<T>

How It Works

Common Voice expects pre-converted WAV files (original MP3 format not supported):

The TSV files contain columns: client_id, path, sentence, up_votes, down_votes, age, gender, accents, locale, segment. Features are raw waveform Tensor[N, MaxSamples]. Labels are character-encoded transcripts Tensor[N, MaxTextLen].

Constructors

Constructor Summary
CommonVoiceDataLoader(CommonVoiceDataLoaderOptions options) Creates a new Common Voice data loader.

Properties

Property Summary
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)