ProgramComputer commited on
Commit
717cb1a
1 Parent(s): 56bb6b0

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +1 -0
test.py CHANGED
@@ -333,6 +333,7 @@ class VoxCeleb(datasets.GeneratorBasedBuilder):
333
  info["speaker_name"] = speaker_info["VGGFace1 ID"]
334
  info["speaker_nationality"] = speaker_info["Nationality"]
335
  if conf.startswith("audio"):
 
336
  if dataset_format == "m4a":
337
  y, sr = librosa.load(info["file"])
338
  info["audio"] = {'array':y,'path':info["file"],'sampling_rate':sr}
 
333
  info["speaker_name"] = speaker_info["VGGFace1 ID"]
334
  info["speaker_nationality"] = speaker_info["Nationality"]
335
  if conf.startswith("audio"):
336
+ raise Exception(dataset_format)
337
  if dataset_format == "m4a":
338
  y, sr = librosa.load(info["file"])
339
  info["audio"] = {'array':y,'path':info["file"],'sampling_rate':sr}