Shortcuts

torchaudio.functional.contrast

torchaudio.functional.contrast(waveform: Tensor, enhancement_amount: float = 75.0) Tensor[source]

Apply contrast effect. Similar to SoX implementation.

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

Comparable with compression, this effect modifies an audio signal to make it sound louder

Parameters:
  • waveform (Tensor) – audio waveform of dimension of (…, time)

  • enhancement_amount (float, optional) – controls the amount of the enhancement Allowed range of values for enhancement_amount : 0-100 Note that enhancement_amount = 0 still gives a significant contrast enhancement

Returns:

Waveform of dimension of (…, time)

Return type:

Tensor

Reference:

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