Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Script to detect "empty" audio files filled with silence?

I have a large bunch (>1000) of audio files (mp3, can be converted), where many of them are filled with unintentional silence.

I want to detect/delete all those files that contain only silence while keeping file names intact. Of course, listening through them is NOT an option.

All programming languages or solutions welcome. The simpler, the better.

This might be simple or complicated. I promise you, I did my research, but am at a dead-end.

like image 334
fridde Avatar asked Dec 29 '25 12:12

fridde


1 Answers

Here is a solution that will Trim any silence from the beginning and end of your mp3 files. You should be able to write a simple script to batch the large amount of files your looking to handle.

dBpoweramp Music Converter (dMC) is free and can batch process audio files and has a DSP Effects plugin which includes:

Trim Silence: remove silence from beginning or end

like image 167
Fisher_Coder Avatar answered Jan 03 '26 18:01

Fisher_Coder



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!