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

15 lines
554 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.DBToAmplitude
=====================================
.. py:class:: mindspore.dataset.audio.DBToAmplitude(ref, power)
将音频波形从分贝转换为功率或振幅。
参数:
- **ref** (float) - 输出波形的缩放系数。
- **power** (float) - 如果 `power` 等于1则将分贝值转为功率如果为0.5,则将分贝值转为振幅。
异常:
- **TypeError** - 如果 `ref` 不是float类型。
- **TypeError** - 如果 `power` 不是float类型。