Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Combining multiple audio files in Python (with delay)

Tags:

audio

I'm looking to combine a range of different audio files (mp3) in Python. One of the requirements is that I need to be able to specify a delay at the end of each file. To illustrate, something like:

[file1.mp3--------3 seconds----------][delay---------2 seconds--------][file2.mp3]-------------4 seconds][delay---------2 seconds][file3.mp3----------3 seconds---------]

Does anyone here know of any mp3 libraries that can accomplish this? Python isn't really a necessity here. If it'll be easier in another language, that'll be fine.

like image 354
NRaf Avatar asked Dec 05 '25 19:12

NRaf


1 Answers

I think FFmpeg can do this, given the right arguments. No real need to use a library.

like image 54
Johan Kotlinski Avatar answered Dec 09 '25 16:12

Johan Kotlinski



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!