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

16 lines
1004 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.MelScale
================================
.. py:class:: mindspore.dataset.audio.MelScale(n_mels=128, sample_rate=16000, f_min=0, f_max=None, n_stft=201, norm=NormType.NONE, mel_type=MelType.HTK)
将正常STFT转换为梅尔尺度的STFT。
参数:
- **n_mels** (int, 可选) - 梅尔滤波器的数量。默认值128。
- **sample_rate** (int, 可选) - 音频信号采样速率。默认值16000。
- **f_min** (float, 可选) - 最小频率。默认值0.0。
- **f_max** (float, 可选) - 最大频率。默认值None将设置为 `sample_rate//2`
- **n_stft** (int, 可选) - STFT中的滤波器的组数。默认值201。
- **norm** (NormType, 可选) - 标准化方法可以是NormType.SLANEY或NormType.NONE。默认值NormType.NONE。
- **mel_type** (MelType, 可选) - 要使用的Mel比例可以是MelType.SLAN或MelType.HTK。默认值MelType.HTK。