- from moviepy.editor import *
-
- au=AudioFileclip("/home/Download/test.mp3")
-
- au=au.fx(afx.audio fadein,duration=1) # 一秒钟的淡入效果
-
- au.write_audiofile("/home/Download/fade.mp3")
- from moviepy.editor import *
-
- au=AudioFileclip("/home/Download/test.mp3")
-
- au=au.fx(afx.audio_fadeout,duration=1) # 一秒钟的淡出效果
-
- au.write_audiofile("/home/Download/fade.mp3")
- from moviepy.editor import *
-
- au=AudioFileclip("/home/Download/test.mp3")
-
- au=au.fx(afx.audio_fadein,duration=1).fx(afx.audio_fadeout,duration=1) # 一秒钟的淡入效果和一秒钟的淡出效果
-
- au.write_audiofile("/home/Download/fade.mp3")