soundmentations.FadeOut

class soundmentations.FadeOut(duration: float = 0.1, p: float = 1.0)[source]

Bases: BaseFade

Apply a fade-out effect to the end of audio samples.

This transform gradually decreases the amplitude from full amplitude to silence (0) over the specified duration, creating a smooth fade-out effect.

Parameters:
  • duration (float, optional) – Duration of the fade-out effect in seconds, by default 0.1. Must be positive and less than the audio duration.

  • p (float, optional) – Probability of applying the transform, by default 1.0.