The module moviepy.audio.fx regroups functions meant to be used with audio.fx(). Note that some of these functions such as volumex (which multiplies the volume) can be applied directly to a video clip, at which case they will affect the audio clip attached to this video clip. Read the docs of the different functions to know when this is the case.
Because this module will be larger in the future, it allows two kinds of import. You can either import a single function like this:
from moviepy.audio.fx.volumex import volumex newaudio = audioclip.fx( vfx.volumex, 0.5)
Or import everything:
import moviepy.audio.fx.all as afx newaudio = (audioclip.afx( vfx.volumex, 0.5) .afx( vfx.audio_fadein, 1.0) .afx( vfx.audio_fadeout, 1.0))
When you type
from moviepy.editor import *
the module audio.fx is loaded as afx and you can use afx.volumex, etc.
|audio_fadein||Return an audio (or video) clip that is first mute, then the|
|audio_fadeout||Return a sound clip where the sound fades out progressively|
|audio_loop||Loops over an audio clip.|
|volumex||Returns a (video or audio) clip with increased sound volume|