Apply a DC shift to the audio. Similar to SoX implementation. This can be useful to remove a DC offset (caused perhaps by a hardware problem in the recording chain) from the audio

functional_dcshift(waveform, shift, limiter_gain = NULL)

Arguments

waveform

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

shift

(float): indicates the amount to shift the audio Allowed range of values for shift : -2.0 to +2.0

limiter_gain

(float): It is used only on peaks to prevent clipping It should have a value much less than 1 (e.g. 0.05 or 0.02)

Value

tensor: Waveform of dimension of (..., time)