File size: 9,659 Bytes
41ca6b6
 
c9c42dc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ef936a3
 
 
 
 
 
 
 
 
 
 
 
 
41ca6b6
ef936a3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
---
license: cc-by-sa-4.0
dataset_info:
  config_name: librivox_spanish
  features:
  - name: audio_id
    dtype: string
  - name: audio
    dtype:
      audio:
        sampling_rate: 16000
  - name: speaker_id
    dtype: string
  - name: speaker_group
    dtype: string
  - name: gender
    dtype: string
  - name: duration
    dtype: float32
  - name: normalized_text
    dtype: string
  splits:
  - name: train
    num_bytes: 6481120844.144
    num_examples: 36338
  download_size: 5089499872
  dataset_size: 6481120844.144
configs:
- config_name: librivox_spanish
  data_files:
  - split: train
    path: librivox_spanish/train-*
  default: true
task_categories:
- automatic-speech-recognition
language:
- es
tags:
- librivox spanish
- ciempiess-unam project
- ciempiess-unam
- read speech
- spanish speech
pretty_name: LIBRIVOX SPANISH CORPUS
size_categories:
- 10K<n<100K
---

# Dataset Card for librivox_spanish
## Table of Contents
- [Dataset Description](#dataset-description)
  - [Dataset Summary](#dataset-summary)
  - [Supported Tasks](#supported-tasks-and-leaderboards)
  - [Languages](#languages)
- [Dataset Structure](#dataset-structure)
  - [Data Instances](#data-instances)
  - [Data Fields](#data-fields)
  - [Data Splits](#data-splits)
- [Dataset Creation](#dataset-creation)
  - [Curation Rationale](#curation-rationale)
  - [Source Data](#source-data)
  - [Annotations](#annotations)
  - [Personal and Sensitive Information](#personal-and-sensitive-information)
- [Considerations for Using the Data](#considerations-for-using-the-data)
  - [Social Impact of Dataset](#social-impact-of-dataset)
  - [Discussion of Biases](#discussion-of-biases)
  - [Other Known Limitations](#other-known-limitations)
- [Additional Information](#additional-information)
  - [Dataset Curators](#dataset-curators)
  - [Licensing Information](#licensing-information)
  - [Citation Information](#citation-information)
  - [Contributions](#contributions)
  
## Dataset Description
- **Homepage:** [CIEMPIESS-UNAM Project](https://ciempiess.org/)
- **Repository:** [LIBRIVOX SPANISH CORPUS at LDC](https://catalog.ldc.upenn.edu/LDC2020S01)
- **Point of Contact:** [Carlos Mena](mailto:[email protected])

### Dataset Summary

Librivox is a non-commercial, non-profit and ad-free project that is dedicated to make all books in the public domain available, for free, in audio format on the internet. According to this, we downloaded 300 titles in Spanish to create the LIBRIVOX SPANISH CORPUS.

The LIBRIVOX SPANISH CORPUS has a duration of 73 hours and it is constituted by audio files between 3 and 10 seconds long, manually segmented. Transcription are also manually made by Spanish native speakers. The recordings are divided between male/female and native/non-native speakers.

### Example Usage
The LIBRIVOX SPANISH CORPUS contains only the train split:

```python
from datasets import load_dataset
librivox_spanish = load_dataset("ciempiess/librivox_spanish")
```
It is also valid to do:
```python
from datasets import load_dataset
librivox_spanish = load_dataset("ciempiess/librivox_spanish",split="train")
```

### Supported Tasks
automatic-speech-recognition: The dataset can be used to test a model for Automatic Speech Recognition (ASR). The model is presented with an audio file and asked to transcribe the audio file to written text. The most common evaluation metric is the word error rate (WER).

### Languages
The language of the corpus is Spanish.

## Dataset Structure

### Data Instances
```python
{
  'audio_id': 'LBVX_F_69_NNT_0035', 
  'audio': {
    'path': '/home/carlos/.cache/HuggingFace/datasets/downloads/extracted/a506b24788064c4a89c858f829b408b0d2445c9cc30e52087e38ceee60fa03d7/non_native/female/F_69/LBVX_F_69_NNT_0035.flac', 
    'array': array([ 2.4414062e-04, -6.1035156e-05, -2.1362305e-04, ...,
       -6.1035156e-04, -4.8828125e-04, -7.6293945e-04], dtype=float32), 'sampling_rate': 16000
  }, 
  'speaker_id': 'F_69', 
  'speaker_group': 'non_native', 
  'gender': 'female', 
  'duration': 9.975000381469727, 
  'normalized_text': 'del pequeño dormido en la mejilla que con timido afán su madre besa y se refleja alegre en la fajilla'
}
```

### Data Fields
* `audio_id` (string) - id of audio segment
* `audio` (datasets.Audio) - a dictionary containing the path to the audio, the decoded audio array, and the sampling rate. In non-streaming mode (default), the path points to the locally extracted audio. In streaming mode, the path is the relative path of an audio inside its archive (as files are not downloaded and extracted locally).
* `speaker_id` (string) - id of speaker
* `speaker_group` (string) - native or non native
* `gender` (string) - gender of speaker (male or female)
* `duration` (float32) - duration of the audio file in seconds.
* `normalized_text` (string) - normalized audio segment transcription

### Data Splits

The corpus counts just with the train split which has a total of 36338 speech files from 77 female speakers and 77 male speakers with a total duration of 73 hours and 1 minute.

## Dataset Creation

### Curation Rationale

The LIBRIVOX SPANISH CORPUS (LSC) has the following characteristics:

* The LSC has an exact duration of 73 hours and 1 minute. It has 36338 audio files.

* The LSC counts with 154 different speakers: 77 men and 77 women. 

* Every audio file in the LSC has a duration between 3 and 10 seconds approximately.

* Data in LSC is classified by speaker. It means, all the recordings of one single speaker are stored in one single directory.

* Data is also classified according to the gender (male/female) of the speakers and according to the way they speak (native/non-native).

* Audio and transcriptions in the LSC are segmented and transcribed by native speakers of the Spanish language

* Audio files in the LSC are distributed in a 16khz@16bit mono format.

* Every audio file has an ID that is compatible with ASR engines such as Kaldi and CMU-Sphinx.

### Source Data

#### Initial Data Collection and Normalization

The LIBRIVOX SPANISH CORPUS is a speech corpus designed to train acoustic models for automatic speech recognition and it is made out of 300 audio books taken from [Librivox](https://librivox.org/).

### Annotations

#### Annotation process

The annotation process is at follows:

* 1. A whole podcast is manually segmented keeping just the portions containing good quality speech.
* 2. A second pass os segmentation is performed; this time to separate speakers and put them in different folders.
* 3. The resulting speech files between 5 and 10 seconds are transcribed by students from different departments (computing, engineering, linguistics). Most of them are native speakers but not with a particular training as transcribers.

#### Who are the annotators?

The LIBRIVOX SPANISH CORPUS was created under the umbrella of the social service program ["Desarrollo de Tecnologías del Habla"](http://profesores.fi-b.unam.mx/carlos_mena/servicio.html) of the ["Facultad de Ingeniería"](https://www.ingenieria.unam.mx/) (FI) in the ["Universidad Nacional Autónoma de México"](https://www.unam.mx/) (UNAM) between 2016 and 2019 by Carlos Daniel Hernández Mena, head of the program.

### Personal and Sensitive Information

The dataset could contain names revealing the identity of some speakers; on the other side, the recordings come from publicly available podcasts, so, there is not a real intent of the participants to be anonymized. Anyway, you agree to not attempt to determine the identity of speakers in this dataset.

## Considerations for Using the Data

### Social Impact of Dataset

This dataset is valuable because it contains well pronounced speech with low noise.

### Discussion of Biases

The dataset is gender balanced. It is comprised of 77 female speakers and 77 male speakers.

### Other Known Limitations

LIBRIVOX SPANISH CORPUS by Carlos Daniel Hernández Mena is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License [CC-BY-SA-4.0](http://creativecommons.org/licenses/by-sa/4.0/) and it utilizes material from [Librivox](https://librivox.org/). This work was done with the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

### Dataset Curators

The dataset was collected by students belonging to the social service program ["Desarrollo de Tecnologías del Habla"](http://profesores.fi-b.unam.mx/carlos_mena/servicio.html). It was curated by [Carlos Daniel Hernández Mena](https://huggingface.co/carlosdanielhernandezmena) in 2019.

### Licensing Information
[CC-BY-SA-4.0](http://creativecommons.org/licenses/by-sa/4.0/)

### Citation Information
```
@misc{carlosmena2020librivoxspanish,
      title={LIBRIVOX SPANISH CORPUS: Audio and Transcriptions taken from Librivox.org},
      ldc_catalog_no={LDC2020S01},
      DOI={https://doi.org/10.35111/a44z-6x49},
      author={Hernandez Mena, Carlos Daniel},
      journal={Linguistic Data Consortium, Philadelphia},
      year={2020},
      url={https://catalog.ldc.upenn.edu/LDC2020S01},
}
```

### Contributions

The author would like to thank to Alejandro V. Mena, Elena Vera and Angélica Gutiérrez for their 
support to the social service program: "Desarrollo de Tecnologías del Habla." He also thanks 
to the social service students for all the hard work.

Special thanks to the Librivox team for publishing all the recordings that constitute the 
LIBRIVOX SPANISH CORPUS.

This dataset card was created as part of the objectives of the 16th edition of the Severo Ochoa Mobility Program (PN039300 - Severo Ochoa 2021 - E&T).