python - moviepy音频剪切与拼接
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') # 输出音频