Currently we're using this command within a shell script to remove silence from audio files:
ffmpeg -i $INFILE -af silenceremove=0:0:0:-1:1:${NOISE_TOLERANCE}dB -ac 1 $SILENCED_FILE -y
This works fine except that it removes all the silence, causing the remaining audio to be squeezed together.
How can this be done while leaving two or three seconds between each piece of audio?
The solution needs to be very efficient as we'll be processing a lot of audio and should use a tool that can be fairly easily installed on both Linux and OSX, such as ffmpeg or sox.