📜  pydub 创建空轨道 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:06.575000             🧑  作者: Mango

代码示例1
# credit to the Stack overflow user in the source link
from pydub import AudioSegment

combined_sounds = AudioSegment.empty()

# now you can concatenate audio files (mp3 in the example)
# with a loop as simple as follows
for file in files:
   sound = AudioSegment.from_mp3(file)
   combined_sounds += sound