ProgramComputer
commited on
Commit
•
cc849bc
1
Parent(s):
dd27643
Update test.py
Browse files
test.py
CHANGED
@@ -334,8 +334,9 @@ class VoxCeleb(datasets.GeneratorBasedBuilder):
|
|
334 |
info["speaker_nationality"] = speaker_info["Nationality"]
|
335 |
if conf.startswith("audio"):
|
336 |
if dataset_format == "aac":
|
337 |
-
|
338 |
-
|
|
|
339 |
else:
|
340 |
info["audio"] = info["file"]
|
341 |
|
|
|
334 |
info["speaker_nationality"] = speaker_info["Nationality"]
|
335 |
if conf.startswith("audio"):
|
336 |
if dataset_format == "aac":
|
337 |
+
with fs.open(info["file"], 'rb') as f:
|
338 |
+
y, sr = librosa.load(f)
|
339 |
+
info["audio"] = {'array':y,'path':info["file"],'sampling_rate':sr}
|
340 |
else:
|
341 |
info["audio"] = info["file"]
|
342 |
|