add multiple audiofiles input and glue it
This commit is contained in:
11
handlers/glueAudio.py
Normal file
11
handlers/glueAudio.py
Normal 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
|
||||
Reference in New Issue
Block a user