Update libritts_test.py
Browse files- libritts_test.py +1 -1
libritts_test.py
CHANGED
|
@@ -151,7 +151,7 @@ class LibriTTSDataset(datasets.GeneratorBasedBuilder):
|
|
| 151 |
if path.startswith(path_to_clips):
|
| 152 |
inside_clips_dir = True
|
| 153 |
if path in examples:
|
| 154 |
-
audio = {"path": path, "
|
| 155 |
yield id_, {**examples[path], "audio": audio}
|
| 156 |
id_ += 1
|
| 157 |
elif inside_clips_dir:
|
|
|
|
| 151 |
if path.startswith(path_to_clips):
|
| 152 |
inside_clips_dir = True
|
| 153 |
if path in examples:
|
| 154 |
+
audio = {"path": path, "bytes": f.read()}
|
| 155 |
yield id_, {**examples[path], "audio": audio}
|
| 156 |
id_ += 1
|
| 157 |
elif inside_clips_dir:
|