# 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