更新时间:2022-02-20 23:34:29
使用像pydub这样的模块
Use module like pydub
#!/usr/bin/env python
from pydub import AudioSegment
sound1 = AudioSegment.from_wav("filename01.wav")
sound2 = AudioSegment.from_wav("filename02.wav")
sound3 = AudioSegment.from_wav("filename03.wav")
combined_sounds = sound1 + sound2 + sound3
combined_sounds.export("joinedFile.wav", format="wav")