mp3 to wav update
Browse files
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(".
|
| 178 |
-
row["path"] += ".
|
| 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"]
|