Update multilingual-TEDX-fr.py
Browse files- multilingual-TEDX-fr.py +2 -0
multilingual-TEDX-fr.py
CHANGED
@@ -198,6 +198,8 @@ class TEDX(datasets.GeneratorBasedBuilder):
|
|
198 |
-------
|
199 |
A NumPy array containing the audio waveform, in float32 dtype.
|
200 |
"""
|
|
|
|
|
201 |
try:
|
202 |
# This launches a subprocess to decode audio while down-mixing and resampling as necessary.
|
203 |
# 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 |
+
return librosa.load(file, sr=sr)
|
203 |
try:
|
204 |
# This launches a subprocess to decode audio while down-mixing and resampling as necessary.
|
205 |
# Requires the ffmpeg CLI and `ffmpeg-python` package to be installed.
|