Datasets:

lhoestq HF staff commited on
Commit
198f294
1 Parent(s): 1033f60

Use audio feature in ASR task template (#4006)

Browse files

* use audio feature in ASR task template

* update datasets

* update tests

* typo

* update dataset_infos.json

Commit from https://github.com/huggingface/datasets/commit/32e0e79aa57b36a269b6f2ee38449a043a393e50

Files changed (2) hide show
  1. dataset_infos.json +1 -1
  2. vctk.py +1 -1
dataset_infos.json CHANGED
@@ -1 +1 @@
1
- {"main": {"description": "", "citation": "@inproceedings{Veaux2017CSTRVC,\n\ttitle = {CSTR VCTK Corpus: English Multi-speaker Corpus for CSTR Voice Cloning Toolkit},\n\tauthor = {Christophe Veaux and Junichi Yamagishi and Kirsten MacDonald},\n\tyear = 2017\n}\n", "homepage": "https://datashare.ed.ac.uk/handle/10283/3443", "license": "", "features": {"speaker_id": {"dtype": "string", "id": null, "_type": "Value"}, "audio": {"sampling_rate": 48000, "mono": true, "_storage_dtype": "string", "id": null, "_type": "Audio"}, "file": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "text_id": {"dtype": "string", "id": null, "_type": "Value"}, "age": {"dtype": "string", "id": null, "_type": "Value"}, "gender": {"dtype": "string", "id": null, "_type": "Value"}, "accent": {"dtype": "string", "id": null, "_type": "Value"}, "region": {"dtype": "string", "id": null, "_type": "Value"}, "comment": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": {"input": "file", "output": "text"}, "task_templates": [{"task": "automatic-speech-recognition", "audio_file_path_column": "file", "transcription_column": "text"}], "builder_name": "vctk", "config_name": "main", "version": {"version_str": "0.9.2", "description": null, "major": 0, "minor": 9, "patch": 2}, "splits": {"train": {"name": "train", "num_bytes": 40103111, "num_examples": 88156, "dataset_name": "vctk"}}, "download_checksums": {"https://datashare.is.ed.ac.uk/bitstream/handle/10283/3443/VCTK-Corpus-0.92.zip": {"num_bytes": 11747302977, "checksum": "f96258be9fdc2cbff6559541aae7ea4f59df3fcaf5cf963aae5ca647357e359c"}}, "download_size": 11747302977, "post_processing_size": null, "dataset_size": 40103111, "size_in_bytes": 11787406088}}
 
1
+ {"main": {"description": "", "citation": "@inproceedings{Veaux2017CSTRVC,\n\ttitle = {CSTR VCTK Corpus: English Multi-speaker Corpus for CSTR Voice Cloning Toolkit},\n\tauthor = {Christophe Veaux and Junichi Yamagishi and Kirsten MacDonald},\n\tyear = 2017\n}\n", "homepage": "https://datashare.ed.ac.uk/handle/10283/3443", "license": "", "features": {"speaker_id": {"dtype": "string", "id": null, "_type": "Value"}, "audio": {"sampling_rate": 48000, "mono": true, "_storage_dtype": "string", "id": null, "_type": "Audio"}, "file": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "text_id": {"dtype": "string", "id": null, "_type": "Value"}, "age": {"dtype": "string", "id": null, "_type": "Value"}, "gender": {"dtype": "string", "id": null, "_type": "Value"}, "accent": {"dtype": "string", "id": null, "_type": "Value"}, "region": {"dtype": "string", "id": null, "_type": "Value"}, "comment": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": {"input": "file", "output": "text"}, "task_templates": [{"task": "automatic-speech-recognition", "audio_column": "audio", "transcription_column": "text"}], "builder_name": "vctk", "config_name": "main", "version": {"version_str": "0.9.2", "description": null, "major": 0, "minor": 9, "patch": 2}, "splits": {"train": {"name": "train", "num_bytes": 40103111, "num_examples": 88156, "dataset_name": "vctk"}}, "download_checksums": {"https://datashare.is.ed.ac.uk/bitstream/handle/10283/3443/VCTK-Corpus-0.92.zip": {"num_bytes": 11747302977, "checksum": "f96258be9fdc2cbff6559541aae7ea4f59df3fcaf5cf963aae5ca647357e359c"}}, "download_size": 11747302977, "post_processing_size": null, "dataset_size": 40103111, "size_in_bytes": 11787406088}}
vctk.py CHANGED
@@ -69,7 +69,7 @@ class VCTK(datasets.GeneratorBasedBuilder):
69
  supervised_keys=("file", "text"),
70
  homepage=_URL,
71
  citation=_CITATION,
72
- task_templates=[AutomaticSpeechRecognition(audio_file_path_column="file", transcription_column="text")],
73
  )
74
 
75
  def _split_generators(self, dl_manager):
 
69
  supervised_keys=("file", "text"),
70
  homepage=_URL,
71
  citation=_CITATION,
72
+ task_templates=[AutomaticSpeechRecognition(audio_column="audio", transcription_column="text")],
73
  )
74
 
75
  def _split_generators(self, dl_manager):