moviepy.audio.fx.all.audio_fadeout

moviepy.audio.fx.all.audio_fadeout(clip, duration)[source]

Return a sound clip where the sound fades out progressively over duration seconds at the end of the clip.

Parameters:
durationfloat

How long does it take for the sound to reach the zero level at the end of the clip.

Examples

>>> clip = VideoFileClip("media/chaplin.mp4")
>>> clip.fx(audio_fadeout, "00:00:06")