Shortcuts

torchaudio.functional.overdrive

torchaudio.functional.overdrive(waveform: Tensor, gain: float = 20, colour: float = 20) Tensor[source]

Apply a overdrive effect to the audio. Similar to SoX implementation.

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

This effect applies a non linear distortion to the audio signal.

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

  • gain (float, optional) – desired gain at the boost (or attenuation) in dB Allowed range of values are 0 to 100

  • colour (float, optional) – controls the amount of even harmonic content in the over-driven output Allowed range of values are 0 to 100

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