transform_vol.Rd
Add a volume to an waveform.
transform_vol(gain, gain_type = "amplitude")
(float): Interpreted according to the given gain_type:
If gain_type
= amplitude
, gain
is a positive amplitude ratio.
If gain_type
= power
, gain
is a power (voltage squared).
If gain_type
= db
, gain
is in decibels.
(str, optional): Type of gain. One of: amplitude
, power
, db
(Default: amplitude
)
Tensor: Tensor of audio of dimension (..., time).
forward param: waveform (Tensor): Tensor of audio of dimension (..., time).