Seosnaps
commited on
Commit
•
7d69300
1
Parent(s):
33d9f1e
Update common_voice_16_0_.py
Browse files- common_voice_16_0_.py +3 -3
common_voice_16_0_.py
CHANGED
@@ -44,7 +44,7 @@ _LICENSE = "https://creativecommons.org/publicdomain/zero/1.0/"
|
|
44 |
# TODO: change "streaming" to "main" after merge!
|
45 |
_BASE_URL = "https://huggingface.co/datasets/Seon25/common_voice_16_0_/tree/main"
|
46 |
|
47 |
-
_AUDIO_URL =
|
48 |
|
49 |
_TRANSCRIPT_URL = "https://huggingface.co/datasets/Seon25/common_voice_16_0_/blob/main/transcript/ha/transcript_ha_{split}.tsv"
|
50 |
|
@@ -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"]
|
|
|
44 |
# TODO: change "streaming" to "main" after merge!
|
45 |
_BASE_URL = "https://huggingface.co/datasets/Seon25/common_voice_16_0_/tree/main"
|
46 |
|
47 |
+
_AUDIO_URL = "https://huggingface.co/datasets/Seon25/common_voice_16_0_/blob/audio/ha/{split}/ha_{split}_0.tar"
|
48 |
|
49 |
_TRANSCRIPT_URL = "https://huggingface.co/datasets/Seon25/common_voice_16_0_/blob/main/transcript/ha/transcript_ha_{split}.tsv"
|
50 |
|
|
|
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"]
|