Datasets:
Tasks:
Automatic Speech Recognition
Multilinguality:
multilingual
Size Categories:
1K<n<10K
Language Creators:
found
Annotations Creators:
found
Source Datasets:
original
License:
Update files from the datasets library (from 1.13.3)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.13.3
- README.md +6 -0
- openslr.py +3 -2
README.md
CHANGED
@@ -529,6 +529,10 @@ A typical data point comprises the path to the audio file, called path and its s
|
|
529 |
```
|
530 |
{
|
531 |
'path': '/home/cahya/.cache/huggingface/datasets/downloads/extracted/4d9cf915efc21110199074da4d492566dee6097068b07a680f670fcec9176e62/su_id_female/wavs/suf_00297_00037352660.wav'
|
|
|
|
|
|
|
|
|
532 |
'sentence': 'Panonton ting haruleng ningali Kelly Clarkson keur nyanyi di tipi',
|
533 |
}
|
534 |
```
|
@@ -537,6 +541,8 @@ A typical data point comprises the path to the audio file, called path and its s
|
|
537 |
|
538 |
path: The path to the audio file
|
539 |
|
|
|
|
|
540 |
sentence: The sentence the user was prompted to speak
|
541 |
|
542 |
### Data Splits
|
|
|
529 |
```
|
530 |
{
|
531 |
'path': '/home/cahya/.cache/huggingface/datasets/downloads/extracted/4d9cf915efc21110199074da4d492566dee6097068b07a680f670fcec9176e62/su_id_female/wavs/suf_00297_00037352660.wav'
|
532 |
+
'audio': {'path': '/home/cahya/.cache/huggingface/datasets/downloads/extracted/4d9cf915efc21110199074da4d492566dee6097068b07a680f670fcec9176e62/su_id_female/wavs/suf_00297_00037352660.wav',
|
533 |
+
'array': array([-0.00048828, -0.00018311, -0.00137329, ..., 0.00079346,
|
534 |
+
0.00091553, 0.00085449], dtype=float32),
|
535 |
+
'sampling_rate': 16000},
|
536 |
'sentence': 'Panonton ting haruleng ningali Kelly Clarkson keur nyanyi di tipi',
|
537 |
}
|
538 |
```
|
|
|
541 |
|
542 |
path: The path to the audio file
|
543 |
|
544 |
+
audio: A dictionary containing the path to the downloaded audio file, the decoded audio array, and the sampling rate. Note that when accessing the audio column: `dataset[0]["audio"]` the audio file is automatically decoded and resampled to `dataset.features["audio"].sampling_rate`. Decoding and resampling of a large number of audio files might take a significant amount of time. Thus it is important to first query the sample index before the `"audio"` column, *i.e.* `dataset[0]["audio"]` should **always** be preferred over `dataset["audio"][0]`.
|
545 |
+
|
546 |
sentence: The sentence the user was prompted to speak
|
547 |
|
548 |
### Data Splits
|
openslr.py
CHANGED
@@ -537,6 +537,7 @@ class OpenSlr(datasets.GeneratorBasedBuilder):
|
|
537 |
features = datasets.Features(
|
538 |
{
|
539 |
"path": datasets.Value("string"),
|
|
|
540 |
"sentence": datasets.Value("string"),
|
541 |
}
|
542 |
)
|
@@ -591,7 +592,7 @@ class OpenSlr(datasets.GeneratorBasedBuilder):
|
|
591 |
path = str(path_to_data.resolve())
|
592 |
sentence = sentence_index[filename]
|
593 |
counter += 1
|
594 |
-
yield counter, {"path": path, "sentence": sentence}
|
595 |
else:
|
596 |
for i, path_to_index in enumerate(path_to_indexs):
|
597 |
with open(path_to_index, encoding="utf-8") as f:
|
@@ -607,4 +608,4 @@ class OpenSlr(datasets.GeneratorBasedBuilder):
|
|
607 |
# set absolute path for audio file
|
608 |
path = os.path.join(path_to_datas[i], f"{filename}.wav")
|
609 |
counter += 1
|
610 |
-
yield counter, {"path": path, "sentence": sentence}
|
|
|
537 |
features = datasets.Features(
|
538 |
{
|
539 |
"path": datasets.Value("string"),
|
540 |
+
"audio": datasets.features.Audio(sampling_rate=48_000),
|
541 |
"sentence": datasets.Value("string"),
|
542 |
}
|
543 |
)
|
|
|
592 |
path = str(path_to_data.resolve())
|
593 |
sentence = sentence_index[filename]
|
594 |
counter += 1
|
595 |
+
yield counter, {"path": path, "audio": path, "sentence": sentence}
|
596 |
else:
|
597 |
for i, path_to_index in enumerate(path_to_indexs):
|
598 |
with open(path_to_index, encoding="utf-8") as f:
|
|
|
608 |
# set absolute path for audio file
|
609 |
path = os.path.join(path_to_datas[i], f"{filename}.wav")
|
610 |
counter += 1
|
611 |
+
yield counter, {"path": path, "audio": path, "sentence": sentence}
|