tz18609292528@163.com commited on
Commit
53075c0
1 Parent(s): baf2345
Files changed (1) hide show
  1. Cylonix_ASR_dataset.py +2 -2
Cylonix_ASR_dataset.py CHANGED
@@ -177,8 +177,8 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
177
  with open(meta_path, encoding="utf-8") as f:
178
  reader = csv.DictReader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
179
  for row in tqdm(reader, desc="Reading metadata..."):
180
- # if not row["path"].endswith(".wav"):
181
- # row["path"] += ".wav"
182
  # accent -> accents in CV 8.0
183
  if "accents" in row:
184
  row["accent"] = row["accents"]
 
177
  with open(meta_path, encoding="utf-8") as f:
178
  reader = csv.DictReader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
179
  for row in tqdm(reader, desc="Reading metadata..."):
180
+ if not row["path"].endswith(".wav"):
181
+ row["path"] += ".wav"
182
  # accent -> accents in CV 8.0
183
  if "accents" in row:
184
  row["accent"] = row["accents"]