Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pydub create empty track

# 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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pydub #create #empty #track
ADD COMMENT
Topic
Name
6+5 =