Help with Macro to truncate silence in bulk? Here's what I have so far:

I have a bunch of files in one instance of Audacity stacked on top of each other. I want to truncate all silence from every file and then export (a copy of originals) to the downloads folder.

So far I’ve:
I’ve created a macro “truncate silence”
From here, I’ve used insertTruncate Silence... and clicked ok.
I’ve configured the truncate settings how I like.
Added ExportAsWAV to the Macro.
Clicking on the apply Macro Truncate silence only works on one file.
Can someone please give me a pointer as to why?

Do you mean you have several tracks contained within in one Audacity project ?

There is an existing effect, Effect > Special > Truncate Silence with an option to truncate tracks independently.

Is there a reason you are trying to use a macro ?

Yep, that works on one file easy. I have thousands of folders and in each folder I need to remove any silence in each sample. So what I described (was trying :slight_smile: ) above was opening a folder of files in one instance of audacity so they’re on separate lanes (stacked vertically) and then trying to apply the macro. Wondering what I missed to apply truncate silence on every file in each lane at one time?

OK; so I wouldn’t use a macro if I didn’t have to. You can Import multiple files into a single Audacity project with the File > Import - just select all of the files you want to import. This will stack the tracks vertically - one track per file. Then the option to truncate tracks independently should do what you are looking for. (If not, please describe exactly what the issue is).

Then File > Export > Export Multiple (by track) should save the results as separate files.

1 Like

This part is where the problem is that I was trying to use a macro for. I’ve had the files stacked vertically, chosen select all, then in the menu applied truncate silence and it only removes silence from one file at a time. I’d need to create a macro to apply truncate silence to all at once no?

And you have the

checked ? Please provide illustrative screenshots. Also Truncate Silence parameters.

Ok, I figured it out! It was so basic and your right, I had the “truncate tracks independently” unchecked. :crazy_face:
thanks for the walkthrough.

This topic was automatically closed after 30 days. New replies are no longer allowed.