pip3 install moviepy -i https://pypi.tuna.tsinghua.edu.cn/simple
from moviepy.audio.io.AudioFileClip import AudioFileClip
from moviepy.editor import concatenate_audioclips
a = AudioFileClip('a.mp3') # 读入音频
audio1 = a.subclip(0,83) # 剪切0-83秒
audio2 = a.subclip(8.5,99) # 剪切8.5-99秒
audiocct = concatenate_audioclips([audio1,audio2]) # 将音频合并
audiocct.write_audiofile('aa.mp3') # 输出音频
标签:moviepy,python,音频,AudioFileClip,audioclips,83,剪切
From: https://www.cnblogs.com/wstong2052/p/17401542.html