I have a bunch of mp3 files containing lots (about 300 per file) of small (0.5s to 3s long) snippets of audio separated by 1s of silence.
I want to edit these mp3 files (preferably losslessly) so that the silent portion of 1s gets replaced by a period of silence as long as the previous audio snippet + 2s. Example:
Current state of the file:
2.3s audio 1.0s silence 1.7s audio 1.0s silence 0.9s audio 1.0s silence
2.3s audio 4.3s silence 1.7s audio 3.7s silence 0.9s audio 2.9s silence
What ways are there to achieve this? I’m open for all kinds of suggestions. (GUI application, command line tool, shell script, whatever…)