Update multilingual-TEDX-fr.py
Browse files- multilingual-TEDX-fr.py +3 -3
multilingual-TEDX-fr.py
CHANGED
@@ -198,9 +198,9 @@ class TEDX(datasets.GeneratorBasedBuilder):
|
|
198 |
-------
|
199 |
A NumPy array containing the audio waveform, in float32 dtype.
|
200 |
"""
|
201 |
-
import librosa
|
202 |
-
with open(file, "rb") as f:
|
203 |
-
|
204 |
try:
|
205 |
# This launches a subprocess to decode audio while down-mixing and resampling as necessary.
|
206 |
# Requires the ffmpeg CLI and `ffmpeg-python` package to be installed.
|
|
|
198 |
-------
|
199 |
A NumPy array containing the audio waveform, in float32 dtype.
|
200 |
"""
|
201 |
+
#import librosa
|
202 |
+
#with open(file, "rb") as f:
|
203 |
+
# return librosa.load(f, sr=sr)
|
204 |
try:
|
205 |
# This launches a subprocess to decode audio while down-mixing and resampling as necessary.
|
206 |
# Requires the ffmpeg CLI and `ffmpeg-python` package to be installed.
|