espnet2.layers.augmentation.deemphasis
Less than 1 minute
espnet2.layers.augmentation.deemphasis
espnet2.layers.augmentation.deemphasis(waveform, sample_rate: int, coeff: float = 0.97)
De-emphasize a waveform along the time dimension.
y[i] = x[i] + coeff * y[i - 1]
- Parameters:
- waveform (torch.Tensor) – audio signal (…, time)
- sample_rate (int) – sampling rate in Hz (not used)
- coeff (float) – de-emphasis coefficient. Typically between 0.0 and 1.0.
- Returns: de-emphasized signal (…, time)
- Return type: ret (torch.Tensor)