Datasets:
license: cc0-1.0
language:
- en
- ru
- th
- uk
task_categories:
- automatic-speech-recognition
pretty_name: Common Voice Corpus 22.0
size_categories:
- 100B<n<1T
tags:
- mozilla
- foundation
configs:
- config_name: default
data_files:
- split: train
path: en/train-*
- split: validation
path: en/validation-*
- split: test
path: en/test-*
- split: other
path: en/other-*
- split: invalidated
path: en/invalidated-*
- config_name: ab
data_files:
- split: train
path: ab/train-*
- split: validation
path: ab/validation-*
- split: test
path: ab/test-*
- split: other
path: ab/other-*
- split: invalidated
path: ab/invalidated-*
- config_name: af
data_files:
- split: train
path: af/train-*
- split: validation
path: af/validation-*
- split: test
path: af/test-*
- split: other
path: af/other-*
- split: invalidated
path: af/invalidated-*
- config_name: am
data_files:
- split: train
path: am/train-*
- split: validation
path: am/validation-*
- split: test
path: am/test-*
- split: other
path: am/other-*
- split: invalidated
path: am/invalidated-*
- config_name: ar
data_files:
- split: train
path: ar/train-*
- split: validation
path: ar/validation-*
- split: test
path: ar/test-*
- split: other
path: ar/other-*
- split: invalidated
path: ar/invalidated-*
- config_name: as
data_files:
- split: train
path: as/train-*
- split: validation
path: as/validation-*
- split: test
path: as/test-*
- split: other
path: as/other-*
- split: invalidated
path: as/invalidated-*
- config_name: ast
data_files:
- split: train
path: ast/train-*
- split: validation
path: ast/validation-*
- split: test
path: ast/test-*
- split: other
path: ast/other-*
- split: invalidated
path: ast/invalidated-*
- config_name: az
data_files:
- split: train
path: az/train-*
- split: validation
path: az/validation-*
- split: test
path: az/test-*
- split: other
path: az/other-*
- split: invalidated
path: az/invalidated-*
- config_name: ba
data_files:
- split: train
path: ba/train-*
- split: validation
path: ba/validation-*
- split: test
path: ba/test-*
- split: other
path: ba/other-*
- split: invalidated
path: ba/invalidated-*
- config_name: bas
data_files:
- split: train
path: bas/train-*
- split: validation
path: bas/validation-*
- split: test
path: bas/test-*
- split: other
path: bas/other-*
- split: invalidated
path: bas/invalidated-*
- config_name: be
data_files:
- split: train
path: be/train-*
- split: validation
path: be/validation-*
- split: test
path: be/test-*
- split: other
path: be/other-*
- split: invalidated
path: be/invalidated-*
- config_name: bg
data_files:
- split: train
path: bg/train-*
- split: validation
path: bg/validation-*
- split: test
path: bg/test-*
- split: other
path: bg/other-*
- split: invalidated
path: bg/invalidated-*
- config_name: en
data_files:
- split: train
path: en/train-*
- split: validation
path: en/validation-*
- split: test
path: en/test-*
- split: other
path: en/other-*
- split: invalidated
path: en/invalidated-*
- config_name: ru
data_files:
- split: train
path: ru/train-*
- split: validation
path: ru/validation-*
- split: test
path: ru/test-*
- split: other
path: ru/other-*
- split: invalidated
path: ru/invalidated-*
- config_name: th
data_files:
- split: train
path: th/train-*
- split: validation
path: th/validation-*
- split: test
path: th/test-*
- split: other
path: th/other-*
- split: invalidated
path: th/invalidated-*
- config_name: uk
data_files:
- split: train
path: uk/train-*
- split: validation
path: uk/validation-*
- split: test
path: uk/test-*
- split: other
path: uk/other-*
- split: invalidated
path: uk/invalidated-*
dataset_info:
- config_name: default
features:
- name: client_id
dtype: string
- name: path
dtype: string
- name: audio
dtype:
audio:
sampling_rate: 48000
- name: sentence
dtype: string
- name: up_votes
dtype: int64
- name: down_votes
dtype: int64
- name: age
dtype: string
- name: gender
dtype: string
- name: accent
dtype: string
- name: locale
dtype: string
- name: segment
dtype: string
- name: variant
dtype: string
splits:
- name: train
num_bytes: 44402784562.16
num_examples: 1138760
- name: validation
num_bytes: 700996084.291
num_examples: 16401
- name: test
num_bytes: 723012394.963
num_examples: 16401
- name: other
num_bytes: 13448814203.739
num_examples: 370737
- name: invalidated
num_bytes: 13993600592.428
num_examples: 306854
download_size: 72492310613
dataset_size: 73269207837.581
- config_name: ab
features:
- name: client_id
dtype: string
- name: path
dtype: string
- name: audio
dtype:
audio:
sampling_rate: 48000
- name: sentence
dtype: string
- name: up_votes
dtype: int64
- name: down_votes
dtype: int64
- name: age
dtype: string
- name: gender
dtype: string
- name: accent
dtype: string
- name: locale
dtype: string
- name: segment
dtype: string
- name: variant
dtype: string
splits:
- name: train
num_bytes: 821931235.695
num_examples: 21037
- name: validation
num_bytes: 397796991.848
num_examples: 9152
- name: test
num_bytes: 373536715.14
num_examples: 9132
- name: other
num_bytes: 531967636.306
num_examples: 16738
- name: invalidated
num_bytes: 197961922.03
num_examples: 5290
download_size: 1900457730
dataset_size: 2323194501.019
- config_name: af
features:
- name: client_id
dtype: string
- name: path
dtype: string
- name: audio
dtype:
audio:
sampling_rate: 48000
- name: sentence
dtype: string
- name: up_votes
dtype: int64
- name: down_votes
dtype: int64
- name: age
dtype: string
- name: gender
dtype: string
- name: accent
dtype: string
- name: locale
dtype: string
- name: segment
dtype: string
- name: variant
dtype: string
splits:
- name: train
num_bytes: 5540295
num_examples: 139
- name: validation
num_bytes: 4973061
num_examples: 125
- name: test
num_bytes: 4958832
num_examples: 131
- name: other
num_bytes: 12549800
num_examples: 306
- name: invalidated
num_bytes: 4421447
num_examples: 198
download_size: 31592528
dataset_size: 32443435
- config_name: am
features:
- name: client_id
dtype: string
- name: path
dtype: string
- name: audio
dtype:
audio:
sampling_rate: 48000
- name: sentence
dtype: string
- name: up_votes
dtype: int64
- name: down_votes
dtype: int64
- name: age
dtype: string
- name: gender
dtype: string
- name: accent
dtype: string
- name: locale
dtype: string
- name: segment
dtype: string
- name: variant
dtype: string
splits:
- name: train
num_bytes: 19268647
num_examples: 523
- name: validation
num_bytes: 8558518
num_examples: 248
- name: test
num_bytes: 9582994
num_examples: 252
- name: other
num_bytes: 23853466
num_examples: 579
- name: invalidated
num_bytes: 1250673
num_examples: 29
download_size: 61430333
dataset_size: 62514298
- config_name: ar
features:
- name: client_id
dtype: string
- name: path
dtype: string
- name: audio
dtype:
audio:
sampling_rate: 48000
- name: sentence
dtype: string
- name: up_votes
dtype: int64
- name: down_votes
dtype: int64
- name: age
dtype: string
- name: gender
dtype: string
- name: accent
dtype: string
- name: locale
dtype: string
- name: segment
dtype: string
- name: variant
dtype: string
splits:
- name: train
num_bytes: 805638649.256
num_examples: 28531
- name: validation
num_bytes: 314577311.28
num_examples: 10503
- name: test
num_bytes: 325624134
num_examples: 10500
- name: other
num_bytes: 1277985763.16
num_examples: 41364
- name: invalidated
num_bytes: 499898381.194
num_examples: 15202
download_size: 2718457797
dataset_size: 3223724238.8900003
- config_name: as
features:
- name: client_id
dtype: string
- name: path
dtype: string
- name: audio
dtype:
audio:
sampling_rate: 48000
- name: sentence
dtype: string
- name: up_votes
dtype: int64
- name: down_votes
dtype: int64
- name: age
dtype: string
- name: gender
dtype: string
- name: accent
dtype: string
- name: locale
dtype: string
- name: segment
dtype: string
- name: variant
dtype: string
splits:
- name: train
num_bytes: 36483179
num_examples: 952
- name: validation
num_bytes: 16691117
num_examples: 485
- name: test
num_bytes: 14473795
num_examples: 379
- name: other
num_bytes: 100266350.888
num_examples: 2558
- name: invalidated
num_bytes: 10673778
num_examples: 282
download_size: 169339172
dataset_size: 178588219.888
- config_name: ast
features:
- name: client_id
dtype: string
- name: path
dtype: string
- name: audio
dtype:
audio:
sampling_rate: 48000
- name: sentence
dtype: string
- name: up_votes
dtype: int64
- name: down_votes
dtype: int64
- name: age
dtype: string
- name: gender
dtype: string
- name: accent
dtype: string
- name: locale
dtype: string
- name: segment
dtype: string
- name: variant
dtype: string
splits:
- name: train
num_bytes: 12087780
num_examples: 434
- name: validation
num_bytes: 2909350
num_examples: 113
- name: test
num_bytes: 5565036
num_examples: 203
- name: other
num_bytes: 23861980
num_examples: 890
- name: invalidated
num_bytes: 823238
num_examples: 31
download_size: 43257654
dataset_size: 45247384
- config_name: az
features:
- name: client_id
dtype: string
- name: path
dtype: string
- name: audio
dtype:
audio:
sampling_rate: 48000
- name: sentence
dtype: string
- name: up_votes
dtype: int64
- name: down_votes
dtype: int64
- name: age
dtype: string
- name: gender
dtype: string
- name: accent
dtype: string
- name: locale
dtype: string
- name: segment
dtype: string
- name: variant
dtype: string
splits:
- name: train
num_bytes: 4984155
num_examples: 157
- name: validation
num_bytes: 2216355
num_examples: 78
- name: test
num_bytes: 3512414
num_examples: 95
- name: other
num_bytes: 17599272
num_examples: 529
- name: invalidated
num_bytes: 1680814
num_examples: 50
download_size: 29374812
dataset_size: 29993010
- config_name: ba
features:
- name: client_id
dtype: string
- name: path
dtype: string
- name: audio
dtype:
audio:
sampling_rate: 48000
- name: sentence
dtype: string
- name: up_votes
dtype: int64
- name: down_votes
dtype: int64
- name: age
dtype: string
- name: gender
dtype: string
- name: accent
dtype: string
- name: locale
dtype: string
- name: segment
dtype: string
- name: variant
dtype: string
splits:
- name: train
num_bytes: 3057042604.68
num_examples: 119088
- name: validation
num_bytes: 442952775.68
num_examples: 14580
- name: test
num_bytes: 441958381.31
num_examples: 14555
- name: other
num_bytes: 5279667
num_examples: 190
- name: invalidated
num_bytes: 238504288.634
num_examples: 8007
download_size: 4008004625
dataset_size: 4185737717.3039994
- config_name: bas
features:
- name: client_id
dtype: string
- name: path
dtype: string
- name: audio
dtype:
audio:
sampling_rate: 48000
- name: sentence
dtype: string
- name: up_votes
dtype: int64
- name: down_votes
dtype: int64
- name: age
dtype: string
- name: gender
dtype: string
- name: accent
dtype: string
- name: locale
dtype: string
- name: segment
dtype: string
- name: variant
dtype: string
splits:
- name: train
num_bytes: 48263427.52
num_examples: 2109
- name: validation
num_bytes: 31928789.584
num_examples: 1328
- name: test
num_bytes: 40796889.824
num_examples: 1547
- name: other
num_bytes: 2647601
num_examples: 108
- name: invalidated
num_bytes: 32915551.352
num_examples: 1217
download_size: 145773862
dataset_size: 156552259.28
- config_name: be
features:
- name: client_id
dtype: string
- name: path
dtype: string
- name: audio
dtype:
audio:
sampling_rate: 48000
- name: sentence
dtype: string
- name: up_votes
dtype: int64
- name: down_votes
dtype: int64
- name: age
dtype: string
- name: gender
dtype: string
- name: accent
dtype: string
- name: locale
dtype: string
- name: segment
dtype: string
- name: variant
dtype: string
splits:
- name: train
num_bytes: 13185546827.312
num_examples: 347672
- name: validation
num_bytes: 630650521.457
num_examples: 15879
- name: test
num_bytes: 636817076.76
num_examples: 15880
- name: other
num_bytes: 595927153.208
num_examples: 17002
- name: invalidated
num_bytes: 1482062008.336
num_examples: 36842
download_size: 12630397776
dataset_size: 16531003587.073002
- config_name: bg
features:
- name: client_id
dtype: string
- name: path
dtype: string
- name: audio
dtype:
audio:
sampling_rate: 48000
- name: sentence
dtype: string
- name: up_votes
dtype: int64
- name: down_votes
dtype: int64
- name: age
dtype: string
- name: gender
dtype: string
- name: accent
dtype: string
- name: locale
dtype: string
- name: segment
dtype: string
- name: variant
dtype: string
splits:
- name: train
num_bytes: 133401970.712
num_examples: 4952
- name: validation
num_bytes: 97888471.632
num_examples: 2932
- name: test
num_bytes: 112939520.238
num_examples: 3354
- name: other
num_bytes: 62095870.375
num_examples: 1787
- name: invalidated
num_bytes: 28457817
num_examples: 773
download_size: 450540276
dataset_size: 434783649.957
- config_name: en
features:
- name: client_id
dtype: string
- name: path
dtype: string
- name: audio
dtype:
audio:
sampling_rate: 48000
- name: sentence
dtype: string
- name: up_votes
dtype: int64
- name: down_votes
dtype: int64
- name: age
dtype: string
- name: gender
dtype: string
- name: accent
dtype: string
- name: locale
dtype: string
- name: segment
dtype: string
- name: variant
dtype: string
splits:
- name: train
num_bytes: 44402784562.16
num_examples: 1138760
- name: validation
num_bytes: 700996084.291
num_examples: 16401
- name: test
num_bytes: 723012394.963
num_examples: 16401
- name: other
num_bytes: 13448814203.739
num_examples: 370737
- name: invalidated
num_bytes: 13993600592.428
num_examples: 306854
download_size: 72492310613
dataset_size: 73269207837.581
- config_name: ru
features:
- name: client_id
dtype: string
- name: path
dtype: string
- name: audio
dtype:
audio:
sampling_rate: 48000
- name: sentence
dtype: string
- name: up_votes
dtype: int64
- name: down_votes
dtype: int64
- name: age
dtype: string
- name: gender
dtype: string
- name: accent
dtype: string
- name: locale
dtype: string
- name: segment
dtype: string
- name: variant
dtype: string
splits:
- name: train
num_bytes: 1066159260.328
num_examples: 26654
- name: validation
num_bytes: 500714051.436
num_examples: 10243
- name: test
num_bytes: 510826148.956
num_examples: 10244
- name: other
num_bytes: 915307005.397
num_examples: 17601
- name: invalidated
num_bytes: 502044441.9
num_examples: 10469
download_size: 2696456638
dataset_size: 3495050908.0169997
- config_name: th
features:
- name: client_id
dtype: string
- name: path
dtype: string
- name: audio
dtype:
audio:
sampling_rate: 48000
- name: sentence
dtype: string
- name: up_votes
dtype: int64
- name: down_votes
dtype: int64
- name: age
dtype: string
- name: gender
dtype: string
- name: accent
dtype: string
- name: locale
dtype: string
- name: segment
dtype: string
- name: variant
dtype: string
splits:
- name: train
num_bytes: 931074619.548
num_examples: 32959
- name: validation
num_bytes: 362347175.706
num_examples: 11057
- name: test
num_bytes: 362814558.522
num_examples: 11057
- name: other
num_bytes: 5976124604.64
num_examples: 208030
- name: invalidated
num_bytes: 332494875.068
num_examples: 9348
download_size: 6720603446
dataset_size: 7964855833.484
- config_name: uk
features:
- name: client_id
dtype: string
- name: path
dtype: string
- name: audio
dtype:
audio:
sampling_rate: 48000
- name: sentence
dtype: string
- name: up_votes
dtype: int64
- name: down_votes
dtype: int64
- name: age
dtype: string
- name: gender
dtype: string
- name: accent
dtype: string
- name: locale
dtype: string
- name: segment
dtype: string
- name: variant
dtype: string
splits:
- name: train
num_bytes: 1020892460.432
num_examples: 26773
- name: validation
num_bytes: 411184998.432
num_examples: 10253
- name: test
num_bytes: 424614530.807
num_examples: 10259
- name: other
num_bytes: 219645163.676
num_examples: 8286
- name: invalidated
num_bytes: 146828267.736
num_examples: 3336
download_size: 1695406421
dataset_size: 2223165421.083
Dataset Card for Common Voice Corpus 22.0
This dataset is an unofficial version of the Mozilla Common Voice Corpus 22. It was downloaded and converted from the project's website https://commonvoice.mozilla.org/.
NOTE: currently converting to parquet for convenience.. WIP
Languages
Abkhaz, Albanian, Amharic, Arabic, Armenian, Assamese, Asturian, Azerbaijani, Basaa, Bashkir, Basque, Belarusian, Bengali, Breton, Bulgarian, Cantonese, Catalan, Central Kurdish, Chinese (China), Chinese (Hong Kong), Chinese (Taiwan), Chuvash, Czech, Danish, Dhivehi, Dioula, Dutch, English, Erzya, Esperanto, Estonian, Finnish, French, Frisian, Galician, Georgian, German, Greek, Guarani, Hakha Chin, Hausa, Hill Mari, Hindi, Hungarian, Icelandic, Igbo, Indonesian, Interlingua, Irish, Italian, Japanese, Kabyle, Kazakh, Kinyarwanda, Korean, Kurmanji Kurdish, Kyrgyz, Lao, Latvian, Lithuanian, Luganda, Macedonian, Malayalam, Maltese, Marathi, Meadow Mari, Moksha, Mongolian, Nepali, Norwegian Nynorsk, Occitan, Odia, Pashto, Persian, Polish, Portuguese, Punjabi, Quechua Chanka, Romanian, Romansh Sursilvan, Romansh Vallader, Russian, Sakha, Santali (Ol Chiki), Saraiki, Sardinian, Serbian, Slovak, Slovenian, Sorbian, Upper, Spanish, Swahili, Swedish, Taiwanese (Minnan), Tamazight, Tamil, Tatar, Thai, Tigre, Tigrinya, Toki Pona, Turkish, Turkmen, Twi, Ukrainian, Urdu, Uyghur, Uzbek, Vietnamese, Votic, Welsh, Yoruba
How to use
The datasets library allows you to load and pre-process your dataset in pure Python, at scale. The dataset can be downloaded and prepared in one call to your local drive by using the load_dataset function.
For example, to download the Portuguese config, simply specify the corresponding language config name (i.e., "en" for English):
from datasets import load_dataset
cv_22 = load_dataset("mort666/cv-corpus-v22", "en", split="train", trust_remote_code=True)
Using the datasets library, you can also stream the dataset on-the-fly by adding a streaming=True argument to the load_dataset function call. Loading a dataset in streaming mode loads individual samples of the dataset at a time, rather than downloading the entire dataset to disk.
from datasets import load_dataset
cv_22 = load_dataset("mort666/cv-corpus-v22", "en", split="train", streaming=True, trust_remote_code=True)
print(next(iter(cv_22)))
Bonus: create a PyTorch dataloader directly with your own datasets (local/streamed).
Local
from datasets import load_dataset
from torch.utils.data.sampler import BatchSampler, RandomSampler
cv_22 = load_dataset("mort666/cv-corpus-v22", "en", split="train", trust_remote_code=True)
batch_sampler = BatchSampler(RandomSampler(cv_22), batch_size=32, drop_last=False)
dataloader = DataLoader(cv_22, batch_sampler=batch_sampler)
Streaming
from datasets import load_dataset
from torch.utils.data import DataLoader
cv_22 = load_dataset("mort666/cv-corpus-v22", "en", split="train", trust_remote_code=True)
dataloader = DataLoader(cv_22, batch_size=32)
To find out more about loading and preparing audio datasets, head over to hf.co/blog/audio-datasets.
Dataset Structure
Data Instances A typical data point comprises the path to the audio file and its sentence. Additional fields include accent, age, client_id, up_votes, down_votes, gender, locale and segment.
Licensing Information
Public Domain, CC-0
Citation Information
@inproceedings{commonvoice:2020,
author = {Ardila, R. and Branson, M. and Davis, K. and Henretty, M. and Kohler, M. and Meyer, J. and Morais, R. and Saunders, L. and Tyers, F. M. and Weber, G.},
title = {Common Voice: A Massively-Multilingual Speech Corpus},
booktitle = {Proceedings of the 12th Conference on Language Resources and Evaluation (LREC 2020)},
pages = {4211--4215},
year = 2020
}