moviepy.audio.fx.all.multiply_stereo_volume¶
-
moviepy.audio.fx.all.
multiply_stereo_volume
(clip, left=1, right=1)[source]¶ For a stereo audioclip, this function enables to change the volume of the left and right channel separately (with the factors left and right). Makes a stereo audio clip in which the volume of left and right is controllable.
Examples
>>> from moviepy import AudioFileClip >>> music = AudioFileClip('music.ogg') >>> audio_r = music.multiply_stereo_volume(left=0, right=1) # mute left channel/s >>> audio_h = music.multiply_stereo_volume(left=0.5, right=0.5) # half audio