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

22 lines
1.3 KiB
ReStructuredText
Raw Permalink 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.SlidingWindowCmn
========================================
.. py:class:: mindspore.dataset.audio.SlidingWindowCmn(cmn_window=600, min_cmn_window=100, center=False, norm_vars=False)
对每个话语应用滑动窗口倒谱均值(和可选方差)归一化。
参数:
- **cmn_window** (int, 可选) - 用于运行平均CMN计算的帧中窗口。默认值600。
- **min_cmn_window** (int, 可选) - 解码开始时使用的最小CMN窗口仅在开始时增加延迟
仅在中心为False时适用在中心为True时忽略。默认值100。
- **center** (bool, 可选) - 如果为True则使用以当前帧为中心的窗口。如果为False则窗口在左侧。默认值False。
- **norm_vars** (bool, 可选) - 如果为True则将方差规范化为1。默认值False。
异常:
- **TypeError** - 当 `cmn_window` 的类型不为int。
- **ValueError** - 当 `cmn_window` 为负数。
- **TypeError** - 当 `min_cmn_window` 的类型不为int。
- **ValueError** - 当 `min_cmn_window` 为负数。
- **TypeError** - 当 `center` 的类型不为bool。
- **TypeError** - 当 `norm_vars` 的类型不为bool。