mel_to_hz¶
- paddle.audio.functional. mel_to_hz ( mel: Union[float, paddle.Tensor, paddle.base.framework.Variable, paddle.base.libpaddle.pir.Value], htk: bool = False ) Union[float, paddle.Tensor, paddle.base.framework.Variable, paddle.base.libpaddle.pir.Value] [source]
-
Convert mel bin numbers to frequencies.
- Parameters
-
mel (Union[float, Tensor]) – The mel frequency represented as a tensor with arbitrary shape.
htk (bool, optional) – Use htk scaling. Defaults to False.
- Returns
-
Frequencies in Hz.
- Return type
-
Union[float, Tensor]
Examples
>>> import paddle >>> val = 3.0 >>> htk_flag = True >>> mel_paddle_tensor = paddle.audio.functional.mel_to_hz( ... paddle.to_tensor(val), htk_flag) ...