mindspore/docs/api/api_python/dataset_audio/mindspore.dataset.audio.Spe...

16 lines
999 B
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.dataset.audio.SpectralCentroid
========================================
.. py:class:: mindspore.dataset.audio.SpectralCentroid(sample_rate, n_fft=400, win_length=None, hop_length=None, pad=0, window=WindowType.HANN)
从音频信号创建光谱质心。
参数:
- **sample_rate** (int) - 波形的采样率例如44100 (Hz)。
- **n_fft** (int, 可选) - FFT的大小创建n_fft // 2 + 1 bins。默认值400。
- **win_length** (int, 可选) - 窗口大小默认值None将设置为 `n_fft` 的值。
- **hop_length** (int, 可选) - STFT窗口之间的跳数长度默认值None将设置为 `win_length//2`
- **pad** (int, 可选) - 信号的两侧填充数量默认值0。
- **window** (WindowType, 可选) - 窗口函数可以是WindowType.BARTLETT、WindowType.BLACKMAN、
WindowType.HAMMING、WindowType.HANN或WindowType.KAISER。默认值WindowType.HANN。