bobur commited on
Commit
e522c76
1 Parent(s): 1b5dbb5

mp3 to wav update

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -174,8 +174,8 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
174
  with open(meta_path, encoding="utf-8") as f:
175
  reader = csv.DictReader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
176
  for row in tqdm(reader, desc="Reading metadata..."):
177
- if not row["path"].endswith(".mp3"):
178
- row["path"] += ".mp3"
179
  # accent -> accents in CV 8.0
180
  if "accents" in row:
181
  row["accent"] = row["accents"]
 
174
  with open(meta_path, encoding="utf-8") as f:
175
  reader = csv.DictReader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
176
  for row in tqdm(reader, desc="Reading metadata..."):
177
+ if not row["path"].endswith(".wav"):
178
+ row["path"] += ".wav"
179
  # accent -> accents in CV 8.0
180
  if "accents" in row:
181
  row["accent"] = row["accents"]