数据集:
Common Voice 数据集包含唯一的 MP3 文件和相应的文本文件。数据集中的许多 20817 小时录音还包括有助于提高语音识别引擎准确性的年龄、性别和口音等人口统计数据。
当前数据集包含96种语言中的15234小时经过验证的录音,但会不断添加更多的语音和语言。请查看 Languages 页面以请求一种语言或开始贡献。
通过 Common Voice 数据集训练的模型的结果可以通过 🤗 Speech Bench 获得
Abkhaz, 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, Dutch, English, Erzya, Esperanto, Estonian, Finnish, French, Frisian, Galician, Georgian, German, Greek, Guarani, Hakha Chin, Hausa, Hindi, Hungarian, Igbo, Indonesian, Interlingua, Irish, Italian, Japanese, Kabyle, Kazakh, Kinyarwanda, Kurmanji Kurdish, Kyrgyz, Latvian, Lithuanian, Luganda, Macedonian, Malayalam, Maltese, Marathi, Meadow Mari, Moksha, Mongolian, Nepali, Norwegian Nynorsk, Odia, Persian, Polish, Portuguese, Punjabi, Romanian, Romansh Sursilvan, Romansh Vallader, Russian, Sakha, Santali (Ol Chiki), Sardinian, Serbian, Slovak, Slovenian, Sorbian, Upper, Spanish, Swahili, Swedish, Taiwanese (Minnan), Tamil, Tatar, Thai, Tigre, Toki Pona, Turkish, Ukrainian, Urdu, Uyghur, Uzbek, Vietnamese, Votic, Welsh
典型的数据点包括音频文件的路径和句子 。其他字段包括口音 、年龄 、client_id 、up_votes 、down_votes 、性别 、语言环境和片段 。
{
'client_id': 'd59478fbc1ee646a28a3c652a119379939123784d99131b865a89f8b21c81f69276c48bd574b81267d9d1a77b83b43e6d475a6cfc79c232ddbca946ae9c7afc5',
'path': 'et/clips/common_voice_et_18318995.mp3',
'audio': {
'path': 'et/clips/common_voice_et_18318995.mp3',
'array': array([-0.00048828, -0.00018311, -0.00137329, ..., 0.00079346, 0.00091553, 0.00085449], dtype=float32),
'sampling_rate': 48000
},
'sentence': 'Tasub kokku saada inimestega, keda tunned juba ammust ajast saati.',
'up_votes': 2,
'down_votes': 0,
'age': 'twenties',
'gender': 'male',
'accent': '',
'locale': 'et',
'segment': ''
}
client_id(string):录音的客户端(声音)的ID
path(string):音频文件的路径
audio(dict):包含下载音频文件的路径、解码音频数组和采样率的字典。请注意,当访问音频列时:dataset[0]["audio"]音频文件会自动解码和重新采样到 dataset.features["audio"].sampling_rate 。解码和重新采样大量音频文件可能需要很长时间。因此,首先查询样本索引再查询 "audio"列是非常重要的,即 dataset[0]["audio"] 应始终优于 dataset["audio"][0] 。
sentence(string):用户被要求说的句子
up_votes(int64):音频文件从评审员那里获得的赞成票数
down_votes(int64):音频文件从评审员那里获得的反对票数
age(string):说话者的年龄(如青少年、二十多岁、五十多岁)
gender(string):说话者的性别
accent(string):说话者的口音
locale(string):说话者所在的语言环境
segment(string):通常是空字段
语音素材被分为 dev、train、test、validated、invalidated、reported 和其他几个部分。
验证数据是经过评审员验证的数据,收到了肯定评价,证明数据质量较高。
无效数据是评审员无效的数据,收到了否定评价,表示数据质量较低。
被举报的数据是因各种原因被举报的数据。
其他数据是尚未经过审核的数据。
dev、test和train都是经过审核、质量较高的数据,并分为dev、test和train。
以下是 Hugging Face 团队建议的数据预处理步骤。他们附带了一个示例代码片段,展示如何实践这些步骤。
这个数据集中的许多例子末尾都有引号,例如“the cat sat on the mat.“。这些末尾的引号并不改变句子的意思,几乎不可能仅凭音频数据来推断出句子是否是引用。因此,建议去掉引号,只留下:the cat sat on the mat。
另外,大多数训练句子以标点符号( . 或 ? 或 ! )结尾,而只有很少一部分不是。在开发集中,几乎所有的句子都以标点符号结尾。因此,建议在少数不以标点符号结尾的训练示例的末尾附加一个句号( . )。
from datasets import load_dataset
ds = load_dataset("mozilla-foundation/common_voice_10_0", "en", use_auth_token=True)
def prepare_dataset(batch):
"""Function to preprocess the dataset with the .map method"""
transcription = batch["sentence"]
if transcription.startswith('"') and transcription.endswith('"'):
# we can remove trailing quotation marks as they do not affect the transcription
transcription = transcription[1:-1]
if transcription[-1] not in [".", "?", "!"]:
# append a full-stop to sentences that do not end in punctuation
transcription = transcription + "."
batch["sentence"] = transcription
return batch
ds = ds.map(prepare_dataset, desc="preprocess dataset")
[需要更多信息]
[需要更多信息]
谁是源语言的生成者?[需要更多信息]
[需要更多信息]
谁是标注者?[需要更多信息]
数据集包含在线捐赠其声音的人们。您同意不尝试确定 Common Voice 数据集中发言者的身份。
数据集包含在线捐赠其声音的人们。您同意不尝试确定 Common Voice 数据集中发言者的身份。
[需要更多信息]
[需要更多信息]
[需要更多信息]
Public Domain, CC-0
@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
}