ginger-turmeric
commited on
Commit
•
6a4563c
1
Parent(s):
c5a5c2a
Upload LibriLight.py
Browse files- LibriLight.py +2 -1
LibriLight.py
CHANGED
@@ -148,7 +148,8 @@ class LibriLight(datasets.GeneratorBasedBuilder):
|
|
148 |
|
149 |
|
150 |
if id in visitedAudios and id in visitedJsons:
|
151 |
-
|
|
|
152 |
key += 1
|
153 |
del visitedAudios[id]
|
154 |
del visitedJsons[id]
|
|
|
148 |
|
149 |
|
150 |
if id in visitedAudios and id in visitedJsons:
|
151 |
+
speaker_id = int(path_split[-3])
|
152 |
+
yield key, {"id": id, "file": path, "audio": visitedAudios[id], "speaker_id": speaker_id, "metadata": visitedJsons[id]}
|
153 |
key += 1
|
154 |
del visitedAudios[id]
|
155 |
del visitedJsons[id]
|