add multiple audiofiles input and glue it

This commit is contained in:
swrneko
2025-09-11 14:04:21 +03:00
parent 6b27149460
commit f2c7dcbeb6
6 changed files with 39 additions and 10 deletions

11
handlers/glueAudio.py Normal file
View File

@@ -0,0 +1,11 @@
from pydub import AudioSegment
class GlueAudio():
def glue(self, audioFiles):
glued = AudioSegment.empty()
for audioFile in audioFiles:
audio = AudioSegment.from_file(audioFile)
glued += audio
return glued