I have written a python script that uses ‘LabelSounds: sil-dur=2’ to create a bunch of labeled sections of an mp3 file. I would like to save each of the labeled sections into a separate file. Export multiple from the interface does this, but there does not seem to be a way to invoke this from a script.
I have also used the ‘Disjoin’:’ command, but there is no way to set the silence duration that I could see, so it creates more clips that it should.
With ‘Disjoin’ I can loop through the clips and use ‘Export2:’, but I get too many clips. With ‘LabelSounds:’ I get exactly the correct sections of the files, but there are no clips to loop through and export.
So – is there a way to export multiple from a script, or alternatively, is there a way to turn labeled sections into clips, so I can loop through the clips and use ‘Export2:’ ?