Shortcuts

Preemphasis

class torchaudio.transforms.Preemphasis(coeff: float = 0.97)[source]

Pre-emphasizes a waveform along its last dimension. See torchaudio.functional.preemphasis() for more details.

This feature supports the following devices: CPU, CUDA This API supports the following properties: Autograd, TorchScript
Parameters:

coeff (float, optional) – Pre-emphasis coefficient. Typically between 0.0 and 1.0. (Default: 0.97)

forward(waveform: Tensor) Tensor[source]
Parameters:

waveform (torch.Tensor) – Waveform, with shape (…, N).

Returns:

Pre-emphasized waveform, with shape (…, N).

Return type:

torch.Tensor

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources