Update multilingual-TEDX-fr.py
Browse files- 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 |
-
|
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
|