ERROR: Catch a exception from 0th func: LogMelSpectrogramKaldi(fs=16000, n_mels=80, n_frame_shift=10.0, n_frame_length=25.0, dither=1.0))
Traceback (most recent call last):
File "/home/PaddleSpeech/asr_test.py", line 10, in
result = asr(audio_file=warm_audio_file)
File "/home/PaddleSpeech/paddlespeech/cli/utils.py", line 328, in _warpper
return executor_func(self, *args, **kwargs)
File "/home/PaddleSpeech/paddlespeech/cli/asr/infer.py", line 510, in call
self.preprocess(model, audio_file)
File "/home/PaddleSpeech/paddlespeech/cli/asr/infer.py", line 275, in preprocess
audio = preprocessing(audio, **preprocess_args)
File "/home/PaddleSpeech/paddlespeech/audio/transform/transformation.py", line 147, in call
xs = [func(x, **_kwargs) for x in xs]
File "/home/PaddleSpeech/paddlespeech/audio/transform/transformation.py", line 147, in
xs = [func(x, **_kwargs) for x in xs]
File "/home/PaddleSpeech/paddlespeech/audio/transform/spectrogram.py", line 373, in call
mat = kaldi.fbank(
File "/home/PaddleSpeech/paddlespeech/audio/compliance/kaldi.py", line 477, in fbank
spectrum = paddle.fft.rfft(strided_input).abs()
File "/root/miniconda3/envs/sp/lib/python3.10/site-packages/paddle/fft.py", line 350, in rfft
return fft_r2c(x, n, axis, norm, forward=True, onesided=True, name=name)
File "/root/miniconda3/envs/sp/lib/python3.10/site-packages/paddle/fft.py", line 1592, in fft_r2c
out = _C_ops.fft_r2c(x, axes, norm, forward, onesided)
RuntimeError: (PreconditionNotMet) The third-party dynamic library (libcufft.so.10) that Paddle depends on is not configured correctly. (error code is libcufft.so.10: cannot open shared object file: No such file or directory)
Suggestions:
- Check if the third-party dynamic library (e.g. CUDA, CUDNN) is installed correctly and its version is matched with paddlepaddle you installed.
- Configure third-party dynamic library environment variables as follows:
- Linux: set LD_LIBRARY_PATH by
export LD_LIBRARY_PATH=...
- Windows: set PATH by
set PATH=XXX;%PATH%
- Mac: set DYLD_LIBRARY_PATH by
export DYLD_LIBRARY_PATH=... [Note: After Mac OS 10.11, using the DYLD_LIBRARY_PATH is impossible unless System Integrity Protection (SIP) is disabled.] (at ../paddle/phi/backends/dynload/dynamic_loader.cc:422)