Datasets:

Modalities:
Audio
Text
ArXiv:
Libraries:
Datasets
License:
polinaeterna HF staff commited on
Commit
63d8137
1 Parent(s): 4ca6fb6

switch features orders so that audio is presented well in the viewer

Browse files
Files changed (1) hide show
  1. voxpopuli.py +1 -1
voxpopuli.py CHANGED
@@ -98,13 +98,13 @@ class Voxpopuli(datasets.GeneratorBasedBuilder):
98
  {
99
  "audio_id": datasets.Value("string"),
100
  "language": datasets.ClassLabel(names=_LANGUAGES),
 
101
  "raw_text": datasets.Value("string"),
102
  "normalized_text": datasets.Value("string"),
103
  "gender": datasets.Value("string"), # TODO: ClassVar?
104
  "speaker_id": datasets.Value("string"),
105
  "is_gold_transcript": datasets.Value("bool"),
106
  "accent": datasets.Value("string"),
107
- "audio": datasets.Audio(sampling_rate=16_000),
108
  }
109
  )
110
  return datasets.DatasetInfo(
 
98
  {
99
  "audio_id": datasets.Value("string"),
100
  "language": datasets.ClassLabel(names=_LANGUAGES),
101
+ "audio": datasets.Audio(sampling_rate=16_000),
102
  "raw_text": datasets.Value("string"),
103
  "normalized_text": datasets.Value("string"),
104
  "gender": datasets.Value("string"), # TODO: ClassVar?
105
  "speaker_id": datasets.Value("string"),
106
  "is_gold_transcript": datasets.Value("bool"),
107
  "accent": datasets.Value("string"),
 
108
  }
109
  )
110
  return datasets.DatasetInfo(