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

16 lines
999 B
ReStructuredText
Raw Normal View History

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`
2022-09-23 15:58:51 +08:00
- **pad** (int, 可选) - 信号的两侧填充数量默认值0。
- **window** (WindowType, 可选) - 窗口函数可以是WindowType.BARTLETT、WindowType.BLACKMAN、
WindowType.HAMMING、WindowType.HANN或WindowType.KAISER。默认值WindowType.HANN。