tz18609292528@163.com commited on
Commit
3bc04d2
1 Parent(s): 53075c0
Files changed (1) hide show
  1. Cylonix_ASR_dataset.py +3 -2
Cylonix_ASR_dataset.py CHANGED
@@ -177,8 +177,9 @@ 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
+ row["path"]="common_voice_zh-CN_0.wav"
183
  # accent -> accents in CV 8.0
184
  if "accents" in row:
185
  row["accent"] = row["accents"]