Apply amplification or attenuation to the whole waveform.

functional_gain(waveform, gain_db = 1)

Arguments

waveform

(Tensor): Tensor of audio of dimension (..., time).

gain_db

(float, optional) Gain adjustment in decibels (dB) (Default: 1.0).

Value

tensor: the whole waveform amplified by gain_db.