Skip to main content
Participating Frequently
April 23, 2010
Answered

how to add or remove silence at the beging and at end of each audio file using batch process

  • April 23, 2010
  • 1 reply
  • 45746 views

Hi all,

I am new to this forum. I have been using Audition 3 for the last couple of years and these days I have to coop with an extra difficult situation, which is; I have more than 2000 files that start and finish with a random length of silence, it varies 0 to 7 sec. My question is, how can I set the silent duration at the beginning and end of each file to a constant amount of 2 sec by using batch process?

Kind regards,

Pavlos

    This topic has been closed for replies.
    Correct answer SteveG_AudioMasters_

    pavlos22 wrote:

    My question is, how can I set the silent duration at the beginning and end of each file to a constant amount of 2 sec by using batch process?

    You are going to have to perform two processes to achieve this. The first is that you will have to remove all of the variable amounts of silence from the files, so that they all start from zero and stop at the end. You can do this automatically by using Edit>Delete Silence, but you will have to be careful about how you set it up.

    After that, you need a script to add a fixed amount of silence at each end of each file, and run this as a batch process. The information about how to do that is in this thread, in the fourth post, and as far as I know, it's the only way to do it. There is more information in the rest of the thread too, explaining how this actually works.

    1 reply

    SteveG_AudioMasters_
    Community Expert
    SteveG_AudioMasters_Community ExpertCorrect answer
    Community Expert
    April 23, 2010

    pavlos22 wrote:

    My question is, how can I set the silent duration at the beginning and end of each file to a constant amount of 2 sec by using batch process?

    You are going to have to perform two processes to achieve this. The first is that you will have to remove all of the variable amounts of silence from the files, so that they all start from zero and stop at the end. You can do this automatically by using Edit>Delete Silence, but you will have to be careful about how you set it up.

    After that, you need a script to add a fixed amount of silence at each end of each file, and run this as a batch process. The information about how to do that is in this thread, in the fourth post, and as far as I know, it's the only way to do it. There is more information in the rest of the thread too, explaining how this actually works.

    pavlos22Author
    Participating Frequently
    April 23, 2010

    Dear Steve,

    Many thanks for you reply. You sussest to use Edit>Delete Silence in order to all start from zero and stop at the end, this procedure will allso trace silence between the audio! Am I missing something here?

    SteveG_AudioMasters_
    Community Expert
    Community Expert
    April 23, 2010

    You may have to play around with the length settings to get this to work, but by and large how well it works overall is very dependent on the material you have in the files. With music, it generally works quite well, but I could certainly see a few potential problems with speech.

    The other thing you may be able to do (and I haven't tried this, so I don't know how practical it would be) would be to have the delete silence operation in a batch file with some selection parameters. So you'd only operate it over the first n seconds of a file (you can select this quite easily) where n is slightly longer than the largest gap you have to detect. In fact, if this works, you could combine all of the operations necessary for both parts of your problem into one script, I think. I might have a look at the possibilities later if I get time...