torchaudio.functional.deemphasis¶
- torchaudio.functional.deemphasis(waveform, coeff: float = 0.97) Tensor [source]¶
De-emphasizes a waveform along its last dimension. Inverse of
preemphasis()
. Concretely, for each signal \(x\) inwaveform
, computes output \(y\) as\[y[i] = x[i] + \text{coeff} \cdot y[i - 1] \]- Parameters:
waveform (torch.Tensor) – Waveform, with shape (…, N).
coeff (float, optional) – De-emphasis coefficient. Typically between 0.0 and 1.0. (Default: 0.97)
- Returns:
De-emphasized waveform, with shape (…, N).
- Return type: