I need to find a silence in a mp3 file. Simple as that.
For example:
I can try it in Batch, VBS, Ruby or Python (Cause I have all to practice, but I only know Batch). I have no idea of music libs and that things...
No matter if I need 3rd party software to do that job like CommandLine APPS...
Note: The silence can be in the middle of the mp3 file too. For example in the files called "Hidden tracks" that is: 1 song + 1 large silence of minutes + another song (All in only 1 mp3 file) So I need something to search X selince into the entire file, Not only near the end of the file...
Note 2: I need to do it in Windows.
Any ideas please?
use sox and it's silence filter
checking output of sox $infile -n stat
and sox $infile -n silence 1 0.1 1% -1 0.1 1% stat
and comparing the lengths of original and trimmed file should do the trick