librosa.set_fftlib

librosa.set_fftlib(lib=None)[source]

Set the FFT library used by librosa.

Parameters:
libNone or module

Must implement an interface compatible with numpy.fft. If None, reverts to numpy.fft.

Examples

Use pyfftw:

>>> import pyfftw
>>> librosa.set_fftlib(pyfftw.interfaces.numpy_fft)

Reset to default numpy implementation

>>> librosa.set_fftlib()