torchaudio.functional.preemphasis
- torchaudio.functional.preemphasis(waveform, coeff: float = 0.97) Tensor [source]
Pre-emphasizes a waveform along its last dimension, i.e. for each signal in
waveform
, computes output as- Parameters:
waveform (torch.Tensor) – Waveform, with shape (…, N).
coeff (float, optional) – Pre-emphasis coefficient. Typically between 0.0 and 1.0. (Default: 0.97)
- Returns:
Pre-emphasized waveform, with shape (…, N).
- Return type: