INNER CODE UNIT · Python

mel_spectrogram

libAudioFlux/audioFlux · python/audioflux/core.py:144

def mel_spectrogram(X, num=128, radix2_exp=12, samplate=32000,
                    low_fre=0., high_fre=None,
                    window_type=WindowType.HANN, slide_length=None,
                    style_type=SpectralFilterBankStyleType.SLANEY,
                    normal_type=SpectralFilterBankNormalType.NONE,
                    data_type=SpectralDataType.POWER):
    """
    Mel-scale spectrogram.

    .. Note:: We recommend using the `BFT` class, you can use it more flexibly and efficiently.

    Parameters
    ----------
    X: np.ndarray [shape=(..., n)]
        audio time series.

    num: int
        Number of mel frequency bins to generate, starting at `low_fre`.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…