AI Logic

Datasets and Benchmarks

Common Voice

Updated:

How Common Voice is collected and split. Left: the flow of gathering sentences to read, participants recording them, other participants voting to sort clips into validated, invalidated, and other, and building train, dev, and test from validated with no overlapping speakers. Right: the contents of one language folder, the main columns of one TSV row, the audio format, the split sizes, and the evaluation rules

Overview

Common Voice is a multilingual speech recognition corpus collected by having volunteers around the world read sentences aloud and record them, while other volunteers listen and verify the recordings. Mozilla started it with English in July 2017 and opened it to any language in June 2018. The entire dataset is released under CC0 (treated almost the same as the public domain). The paper was presented by Ardila et al. at LREC 2020.

It was created because training data for speech recognition is expensive or simply nonexistent for most languages. By leaving both recording and verification to participants, the same mechanism can collect speech not only for languages with many speakers but also for those with few.

The corpus is not built once and finished; it is still being collected, with new versions released regularly. At the time of the paper (the June 2019 version), 29 languages and about 2,500 hours had been released; v27.0, with a cutoff of September 2026, covers 295 languages and a total of 42,593 hours (29,295 of them validated). Japanese in v27.0 has 726 hours (373 validated) from 7,852 participants.

The contents differ greatly between versions. When a paper or article says it "evaluated on Common Voice," always check the version (e.g., 5.1, 9.0), the language, and the split used.

Contents: collection, splits, and format

Collection has three stages.

  1. Gather sentences to read. For languages with more than 500,000 Wikipedia articles, sentences are extracted from Wikipedia under language-specific rules. In addition, participants can submit sentences with a tool called Sentence Collector, and sentences approved by 2 of 3 reviewers are added. Recording for a new language starts once the interface has been translated and more than 5,000 sentences have been collected.
  2. Participants read aloud and record. On the website or the smartphone app, they read the sentence shown on screen.
  3. Other participants listen and verify. They vote "yes" or "no" on whether the audio matches the sentence. Each clip (one recording) is heard by up to 3 people.

Based on the votes, clips fall into three groups. In the current distribution, clips with 2 or more votes and more up-votes than down-votes are validated, those with more down-votes (or a tie with 3 or more votes) are invalidated, and those without enough votes to decide are other.

The splits, train, dev, and test, are built only from validated clips. There are three rules for splitting.

  • No overlapping speakers: each speaker appears in only one split, so that voices heard in training are not heard again in testing.
  • Each sentence only once: even if many people read the same sentence, only one recording goes into the splits.
  • Evaluation sizes set statistically: the number of test clips is the number needed for 99% confidence with a 1% margin of error relative to the number of training clips. The same applies to dev.

As a result, the training set can be much smaller than the number of validated clips. For example, Japanese in v27.0 has 300,315 validated clips, but only 19,696 in train and 9,020 each in dev and test.

The format is one compressed file per language, containing a clips/ folder of audio and a TSV (tab-separated) file for each split.

FileContents
train.tsv, dev.tsv, test.tsvThe official splits
validated.tsvAll validated clips (including repeated sentences)
invalidated.tsv, other.tsvRejected clips and clips not yet decided

Each TSV row is one clip, with the speaker's anonymous ID (client_id), the audio file name (path), the sentence read (sentence), the numbers of up- and down-votes, and optionally self-reported age, gender, and accent (age, gender, accents), among others. The audio is mono 48 kHz MP3. Because collection happens on the web, MP3 was chosen as a format every browser and device can reliably handle.

Evaluation protocol

Evaluation uses the error rate measured on the clips in test.tsv. It is common to use word error rate (WER) for languages that separate words with spaces and character error rate (CER) for those that do not. CER is the same formula as WER, counted over characters instead of words.

CER=S+D+IN\mathrm{CER} = \frac{S + D + I}{N}

Here SS, DD, and II are the numbers of substituted, deleted, and inserted characters, and NN is the number of characters in the reference. The paper reports CER, arguing that it is less language-dependent for multilingual comparisons. In languages such as Japanese and Chinese that do not separate words with spaces, the definition of a "word" is not fixed.

sentence is the exact sentence that was read and retains punctuation, Japanese quotation brackets, and capitalization. Unless normalization, such as removing punctuation, is aligned before counting WER or CER, values from different papers cannot be compared.

The paper uses Mozilla's DeepSpeech (a model with fully connected layers and one LSTM layer, trained with CTC) and experiments with copying layers from a model trained on English and fine-tuning on 12 languages. Test CER on the splits at the time of the paper (slightly different from the official splits) is as follows.

LanguageTraining clipsNo transfer from English4 layers transferred from English
Slovenian72823.3515.35
Chuvash1,02348.127.21
Breton1,07921.4715.99
Turkish3,77134.6627.55
French40,90743.3343.20
German65,74543.7643.76

Values are in %. The less data a language had, the larger the benefit of transferring from the English model; averaged over the 12 languages, CER improved by 5.99 points (standard deviation 5.48).

Usage and historical significance

As the speech recognition corpus with the largest number of languages that anyone can use for free, Common Voice became a foundation for multilingual speech recognition research. For many of the 12 languages in the paper's experiments, this was the first time results were reported for speech recognition that learns from audio to text with a single model.

Main uses include:

  • Multilingual pretraining and evaluation: XLSR (Conneau et al., 2020) pretrained wav2vec 2.0 on speech in multiple languages and evaluated it on 10 Common Voice languages. The later XLSR-53 was pretrained on speech in 53 languages, including Common Voice.
  • Speech recognition for languages other than English: it is used for training and evaluation in languages with little publicly available transcribed speech.
  • Robustness evaluation: because participants record on their own devices in their own rooms, microphones, noise, and accents vary widely. The Whisper paper compared, on English Common Voice 5.1 and other data, how much models trained only on LibriSpeech degrade on other data.
ModelWER on LibriSpeech test-cleanWER on Common Voice 5.1 (English)
wav2vec 2.0 Large (fine-tuned on LibriSpeech, no language model)2.729.9
Whisper Large V22.79.0

Values are in % (from a table in the Whisper paper). Even with the same value on LibriSpeech, a large gap appears on Common Voice, which covers a wide range of recording conditions.

Practical notes

License and terms of use: the audio and sentences are CC0, usable commercially, with no attribution required. However, downloading requires agreeing "not to attempt to determine the identity of speakers." Since October 2025, distribution has been only through Mozilla Data Collective, and the copies of past versions on Hugging Face have been emptied.

Not identifying speakers is a condition of use. For building speaker identification or verification models, the operators have indicated on their forum that other datasets with different terms of use may be a better fit. Check the latest terms of use before using it.

Variation in audio quality and speakers: recording equipment and environment differ per participant, and the audio is MP3-compressed. This diversity suits training, but not comparisons that assume clean audio.

Age, gender, and accent are optional: they are self-reported by participants, and clips from participants who did not report them are blank. When comparing performance by attribute, note that the tally covers only clips with reported attributes.

Sampling rate: many speech recognition models assume 16 kHz, so load the 48 kHz MP3 and resample it to 16 kHz. Since a large number of files must be converted, converting and saving them in advance speeds up training.

Match versions and splits: each version adds clips and redoes the splits. Results from different versions cannot be compared.

Comparison with similar datasets

Representative English and Japanese speech datasets, compared from the same viewpoints:

DatasetLanguageSpeakersDurationMain useAudio formatLicense
LibriSpeechEnglish2,484About 1,000 hoursSpeech recognition16 kHz, FLACCC BY 4.0
Common VoiceMultilingual (295 languages in v27.0)From 1 to about 100,000 per language (English)42,593 hours across all languages (29,295 validated)Speech recognition48 kHz, MP3CC0
LJ SpeechEnglish1About 24 hoursSpeech synthesis22.05 kHz, WAVPublic domain
JSUTJapanese1About 10 hoursSpeech synthesis48 kHz, WAVText under CC BY-SA 4.0 and others; audio for research, non-commercial, and personal use (commercial use by arrangement)

Rules of thumb for choosing:

  • For speech recognition in languages other than English, especially those with few speakers, use Common Voice.
  • To compare English speech recognition under the same conditions as other papers, use LibriSpeech.
  • To check robustness to varied recording conditions, evaluate on Common Voice as well as LibriSpeech.
  • For speech synthesis, LJ Speech (English) or JSUT (Japanese), read by a single speaker in a quiet environment, are better suited. Common Voice varies in both speakers and audio quality, so it is not suitable for speech synthesis as is.

PyTorch example

Show code
python
import csv
import os

import soundfile as sf  # reading MP3 requires libsndfile 1.1 or later
import torch
import torchaudio
from torch.utils.data import DataLoader, Dataset

"""
Load the official splits for one language of Common Voice (e.g. cv-corpus-<version>-<date>/ja/)
The audio is 48 kHz MP3, so resample it to 16 kHz before computing features
"""


class CommonVoice(Dataset):
  def __init__(self, lang_dir, split='train', sample_rate=16000):
    self.lang_dir = lang_dir
    with open(os.path.join(lang_dir, split + '.tsv'), encoding='utf-8', newline='') as f:
      # sentences may contain quote characters, so do not treat quotes specially
      self.rows = list(csv.DictReader(f, delimiter='\t', quoting=csv.QUOTE_NONE))
    self.sample_rate = sample_rate
    self.mel = torchaudio.transforms.MelSpectrogram(sample_rate=sample_rate, n_fft=400, hop_length=160, n_mels=80)

  def __len__(self):
    return len(self.rows)

  def __getitem__(self, i):
    row = self.rows[i]
    wav, sr = sf.read(os.path.join(self.lang_dir, 'clips', row['path']), dtype='float32')
    wav = torch.from_numpy(wav)
    if wav.dim() == 2:
      wav = wav.mean(dim=1)  # make it mono just in case
    wav = torchaudio.functional.resample(wav, sr, self.sample_rate)  # 48 kHz -> 16 kHz
    feats = torch.log(self.mel(wav) + 1e-6).t()  # [num_frames, 80]
    # client_id is the speaker's anonymous ID. Not trying to identify speakers is a condition of use
    return feats, row['sentence'], row['client_id']


def normalize(text):
  # remove punctuation and Japanese brackets, lowercase Latin letters (match the rules of whatever you compare against)
  drop = set('、。,.・「」『』()()!?!?,.:;"\'')
  return ''.join(c for c in text.lower() if c not in drop).strip()


def char_errors(ref, hyp):
  # character-level edit distance (substitutions + deletions + insertions) and number of reference characters
  r, h = list(ref.replace(' ', '')), list(hyp.replace(' ', ''))
  d = list(range(len(h) + 1))
  for i in range(1, len(r) + 1):
    prev, d[0] = d[0], i
    for j in range(1, len(h) + 1):
      cur = min(d[j] + 1, d[j - 1] + 1, prev + (r[i - 1] != h[j - 1]))
      prev, d[j] = d[j], cur
  return d[len(h)], len(r)


def evaluate_cer(model, decode, lang_dir):
  # CER over all clips in test.tsv = total character errors / total reference characters
  data = CommonVoice(lang_dir, 'test')
  model.eval()
  errors, chars = 0, 0
  with torch.no_grad():
    for feats, text, _ in data:
      hyp = decode(model(feats.unsqueeze(0)))  # decode is a function that turns the model output into a string
      e, n = char_errors(normalize(text), normalize(hyp))
      errors += e
      chars += n
  return 100.0 * errors / chars


# Train on train.tsv, tune on dev.tsv, report on test.tsv. When using validated.tsv for training,
# first remove the speakers (client_id) and sentences (sentence) in test.tsv and dev.tsv

FAQ

Q. validated.tsv is much larger than train.tsv, so why use train.tsv?
A.

Because the official splits are built to ensure that speakers do not overlap and that each sentence appears only once. Training directly on validated.tsv puts the same speakers and sentences as the test set into training, making test scores look better than they really are. When using validated.tsv to enlarge the training set, first remove the client_id and sentence values found in dev.tsv and test.tsv.

Q. Should WER or CER be used to evaluate Japanese Common Voice?
A.

CER is the common choice. Japanese does not separate words with spaces, so counting WER first requires splitting text into words with morphological analysis or similar, and the value changes with how the text is split. CER is not affected by segmentation.

Q. Can speech synthesis be trained on Common Voice audio?
A.

The license allows it, but it is not suitable as is. There are few recordings per speaker, and recording environments and audio quality vary widely. For single-voice speech synthesis, use a corpus in which one person read for many hours in a quiet environment, such as LJ Speech or JSUT.

References

  1. Ardila, R., Branson, M., Davis, K., Henretty, M., Kohler, M., Meyer, J., Morais, R., Saunders, L., Tyers, F. M., & Weber, G. (2020). Common Voice: A Massively-Multilingual Speech Corpus. LREC 2020.
  2. Common Voice. cv-dataset (official repository: statistics for each version, distribution format, description of TSV columns).
  3. Mozilla Data Collective (distributor of Common Voice).
  4. Conneau, A., Baevski, A., Collobert, R., Mohamed, A., & Auli, M. (2020). Unsupervised Cross-lingual Representation Learning for Speech Recognition(XLSR).
  5. Radford, A., et al. (2022). Robust Speech Recognition via Large-Scale Weak Supervision(Whisper).
  6. Mozilla Discourse. Speaker IDs for Speaker Identification Model (answer about the condition of not identifying speakers).