Update ningbo_voice_0.py
Browse filesupdate trainset file format
- 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(".
|
170 |
-
row["path"] += ".
|
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"]
|