Macro for splitting audio

I have this macro for splitting up audiofiles into pieces :

SelectAll:
Normalize:ApplyGain="1" PeakLevel="-0.5" RemoveDcOffset="1" StereoIndependent="0"
LabelSounds:measurement="peak" post-offset="0" pre-offset="0" sil-dur="0.1" snd-dur="1" text="Sound ##1" threshold="-45" type="around"

Then I have to “export multiple” to save the freshly created labels to individual sound files.

But I need to apply this macro to thousands of files … pffffff

How can I “automate” or “macro-ize” the exporting process, so I can apply this macro multiple collections in 1 go ? (apply macro to Files)

Is there a work-around to get this done in some way ?

I have tested other MP3 splitters, but many have bugs and quircks … Audacity splits the audio in the most relyable way, I’ve noticed, so I would like to use it …

Hello again, pascalspits.

Macros do not allow looping, and Export Multiple is not available in macros, so you can’t do this entirely within a macro.

I imagine you could run a Pascal script inovking Get Info:Labels to get the information you need to do multiple Exports.

So you will end up with tens of thousands of files after splitting? Why not just use Export Multiple and do them as and when you need them, rather than doing them all now?

because it’s for a sound-fx library … I need to clean it up/split it up, to make it more searchable …

A couple of ways that it could be done:

  • Modify the “Label Sounds” effect so that it exports files instead of creating labels.
  • Write a batch processing script with SoX rather than Audacity as the audio processing tool.

Since it can’t be done with a simple Audacity Macro:

If the sound-fx library is for your own use, then I still think the best approach is to split the files as and when you need them (there may be thousands of sounds that you never ever use).

If you are trying to make a sound-fx library to sell, and you don’t want to learn how to program, then maybe you need to employ someone to do the job for you.

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