ProgramComputer commited on
Commit
cc849bc
1 Parent(s): dd27643

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +3 -2
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
- y, sr = librosa.load(info["file"])
338
- info["audio"] = {'array':y,'path':info["file"],'sampling_rate':sr}
 
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