functional_dcshift: DC Shift (functional)

functional_dcshiftR Documentation

DC Shift (functional)

Description

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

Usage

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)

References


torchaudio documentation built on Feb. 16, 2023, 9:41 p.m.