dcjack commited on
Commit
0a6c9d0
1 Parent(s): 2941dcb

Update ningbo_voice_0.py

Browse files

update trainset file format

Files changed (1) hide show
  1. ningbo_voice_0.py +2 -2
ningbo_voice_0.py CHANGED
@@ -166,8 +166,8 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
166
  with open(meta_path, encoding="utf-8") as f:
167
  reader = csv.DictReader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
168
  for row in tqdm(reader, desc="Reading metadata..."):
169
- if not row["path"].endswith(".mp3"):
170
- row["path"] += ".mp3"
171
  # accent -> accents in CV 8.0
172
  if "accents" in row:
173
  row["accent"] = row["accents"]
 
166
  with open(meta_path, encoding="utf-8") as f:
167
  reader = csv.DictReader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
168
  for row in tqdm(reader, desc="Reading metadata..."):
169
+ if not row["path"].endswith(".wav"):
170
+ row["path"] += ".wav"
171
  # accent -> accents in CV 8.0
172
  if "accents" in row:
173
  row["accent"] = row["accents"]