BrunoHays commited on
Commit
e14c8b7
1 Parent(s): b8befbc

Update multilingual-TEDX-fr.py

Browse files
Files changed (1) hide show
  1. multilingual-TEDX-fr.py +1 -2
multilingual-TEDX-fr.py CHANGED
@@ -220,8 +220,7 @@ class TEDX(datasets.GeneratorBasedBuilder):
220
  return np.frombuffer(out, np.int16).flatten().astype(np.float32) / 32768.0
221
  else:
222
  with open(file, "rb") as f:
223
- print(librosa.load(f, sr=sr))
224
- return librosa.load(f, sr=sr)
225
 
226
 
227
  @staticmethod
 
220
  return np.frombuffer(out, np.int16).flatten().astype(np.float32) / 32768.0
221
  else:
222
  with open(file, "rb") as f:
223
+ return librosa.load(f, sr=sr)[0]
 
224
 
225
 
226
  @staticmethod