gcjavi commited on
Commit
91bc1a9
1 Parent(s): e9d61e0

path format changed to audio

Browse files
Files changed (1) hide show
  1. my_dataset.py +3 -3
my_dataset.py CHANGED
@@ -65,8 +65,8 @@ class ParlaSpeechDataset(datasets.GeneratroBasedBuilder):
65
  features=datasets.Features(
66
  {
67
  #"speaker_id": datasets.Value("string"),
68
- "path": datasets.Value("string"),
69
- "audio": datasets.Audio(sampling_rate=16_000),
70
  "sentence": datasets.Value("string"),
71
  }
72
  ),
@@ -129,4 +129,4 @@ class ParlaSpeechDataset(datasets.GeneratroBasedBuilder):
129
  yield id_, {**examples[path], "audio": audio}
130
  id_ += 1
131
  elif inside_clips_dir:
132
- break
 
65
  features=datasets.Features(
66
  {
67
  #"speaker_id": datasets.Value("string"),
68
+ #"path": datasets.Value("string"),
69
+ "path": datasets.Audio(sampling_rate=16_000),
70
  "sentence": datasets.Value("string"),
71
  }
72
  ),
 
129
  yield id_, {**examples[path], "audio": audio}
130
  id_ += 1
131
  elif inside_clips_dir:
132
+ break