Chain Processing + Find Sound + Export Multiple

Help for Audacity 2.x.x on Windows.

ImageThis forum is for Audacity 2.x.x on Windows.

  • Please state which version of Windows you are using, the exact three-section version of Audacity from "Help menu > About Audacity".

  • Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
    The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.

Chain Processing + Find Sound + Export Multiple

Permanent link to this post Posted by dadude123 » Sun Oct 08, 2017 9:54 pm

I have many (200+) sound files.
Each of those files contains 4-5 sounds that I want to split up into separate files.

The "Find Sound" thing works really well, and doing Export Multiple works fine as well.

Now my problem is that I'd have to do this step (Find Sound -> Export Multiple) many times, once for each source file.

I've taken a look at the Chain processing methods, but I cannot find Export Multiple in the chain editor.

How do I apply the above steps to all my source files automatically?
If that's not possible for whatever reason, maybe there's an addon that does it?
Does anyone have any ideas what I could do?
Saving the labels that say where each sound in each file starts and ends would help as well, if all else fails I could write some tool to "hack" the files into their sound parts myself :)
dadude123
 
Posts: 6
Joined: Sun Oct 08, 2017 9:49 pm
Operating System: Windows 7

Re: Chain Processing + Find Sound + Export Multiple

Permanent link to this post Posted by steve » Tue Oct 10, 2017 7:50 am

dadude123 wrote: I cannot find Export Multiple in the chain editor.

Export Multiple is not currently supported in Chains.

dadude123 wrote:Saving the labels that say where each sound in each file starts and ends would help as well

Labels can be exported http://manual.audacityteam.org/man/label_tracks.html
but that is not supported in Chains either.

dadude123 wrote:I have many (200+) sound files.
Each of those files contains 4-5 sounds that I want to split up into separate files.

How long are each of the sound files?

dadude123 wrote:The "Find Sound" thing works really well,

"Sound Finder" (and similar tools) has a reputation for not being 100% accurate (because it can easily be thrown off by background noise). How important is it that this process is 100% accurate for all 200+ files?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45359
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Chain Processing + Find Sound + Export Multiple

Permanent link to this post Posted by dadude123 » Tue Oct 10, 2017 9:15 am

steve wrote:
dadude123 wrote: I cannot find Export Multiple in the chain editor.

Export Multiple is not currently supported in Chains.

dadude123 wrote:Saving the labels that say where each sound in each file starts and ends would help as well

Labels can be exported http://manual.audacityteam.org/man/label_tracks.html
but that is not supported in Chains either.

dadude123 wrote:I have many (200+) sound files.
Each of those files contains 4-5 sounds that I want to split up into separate files.

How long are each of the sound files?

dadude123 wrote:The "Find Sound" thing works really well,

"Sound Finder" (and similar tools) has a reputation for not being 100% accurate (because it can easily be thrown off by background noise). How important is it that this process is 100% accurate for all 200+ files?


Ahh that is really sad to hear, Audacity is so close to solving the problem :(

The sound files are between 2-8 seconds, each one containing 4-5 sounds (sometimes just 3)
They are already pre-processed so there is no background noise, I'm confident that the sound finder will be able to handle it since the files are well prepared.
dadude123
 
Posts: 6
Joined: Sun Oct 08, 2017 9:49 pm
Operating System: Windows 7

Re: Chain Processing + Find Sound + Export Multiple

Permanent link to this post Posted by steve » Tue Oct 10, 2017 9:56 am

dadude123 wrote:The sound files are between 2-8 seconds, each one containing 4-5 sounds (sometimes just 3)

So how about something like this:

1) Import all 200+ files (about 20 mins total?)
2) "Tracks menu > Align tracks > Align End to End"
3) "Tracks menu > Mix and Render" (mix down to one track)
4) "Analyze menu > Silence Finder"
5) "File menu > Export Multiple"
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45359
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Chain Processing + Find Sound + Export Multiple

Permanent link to this post Posted by dadude123 » Tue Oct 10, 2017 6:15 pm

steve wrote:
dadude123 wrote:The sound files are between 2-8 seconds, each one containing 4-5 sounds (sometimes just 3)

So how about something like this:

1) Import all 200+ files (about 20 mins total?)
2) "Tracks menu > Align tracks > Align End to End"
3) "Tracks menu > Mix and Render" (mix down to one track)
4) "Analyze menu > Silence Finder"
5) "File menu > Export Multiple"


Hmm, that would get rid of the original file names.
However I absolutely need the original names + number.
dadude123
 
Posts: 6
Joined: Sun Oct 08, 2017 9:49 pm
Operating System: Windows 7

Re: Chain Processing + Find Sound + Export Multiple

Permanent link to this post Posted by steve » Tue Oct 10, 2017 6:47 pm

It may help us to help you if you tell us what you are actually doing. What are these 200+ files and what / why do you need to do to them?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45359
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Chain Processing + Find Sound + Export Multiple

Permanent link to this post Posted by dadude123 » Tue Oct 10, 2017 8:02 pm

steve wrote:It may help us to help you if you tell us what you are actually doing. What are these 200+ files and what / why do you need to do to them?


They are sounds for a game I'm making, each file contains a few variations of the sound.
For example SwordHitLight.wav contains 4 different takes of the sound, so the game can chose to play one randomly.

The files are SwordHitLight.wav, AxeHit.wav, FootstepGrass.wav, FoostepSand.wav, ....

I need to split them into their individual sounds, but I need to maintain the original names so they're visible in the file-explorer and can be searched for.

There will be more sounds coming soon so I'll likely have to redo the steps then for the new sounds (they get put into the same folder, so I'll likely just do it again for all of them instead of just the new sounds).
dadude123
 
Posts: 6
Joined: Sun Oct 08, 2017 9:49 pm
Operating System: Windows 7

Re: Chain Processing + Find Sound + Export Multiple

Permanent link to this post Posted by steve » Tue Oct 10, 2017 8:55 pm

OK, so a variation on the steps that I suggested previously, using a modified version of Silence Finder (which I have called "Silence Finder Mod...")
ModifiedSilenceMarker.ny
(4.31 KiB) Downloaded 14 times

Instructions for installing this plug-in: http://wiki.audacityteam.org/wiki/Downl ... ns#install
I've only tested this version in Audacity 2.2.0 beta, but I think it should work in Audacity 2.1.3

Steps:

1) Import all 200+ files (about 20 mins total?)
2) "Tracks menu > Align tracks > Align End to End"
3) "Analyze menu > Silence Finder Mod..."
4) "Tracks menu > Mix and Render" (mix down to one track)
5) "File menu > Export Multiple"

The modification is that the labels have the name of the audio track that is being labelled. Export Multiple is able to use the label text for naming the exported files.
You may need to tweak the procedure to achieve what you want.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45359
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Chain Processing + Find Sound + Export Multiple

Permanent link to this post Posted by dadude123 » Wed Oct 11, 2017 12:21 am

steve wrote:OK, so a variation on the steps that I suggested previously, using a modified version of Silence Finder (which I have called "Silence Finder Mod...")
ModifiedSilenceMarker.ny

Instructions for installing this plug-in: http://wiki.audacityteam.org/wiki/Downl ... ns#install
I've only tested this version in Audacity 2.2.0 beta, but I think it should work in Audacity 2.1.3

Steps:

1) Import all 200+ files (about 20 mins total?)
2) "Tracks menu > Align tracks > Align End to End"
3) "Analyze menu > Silence Finder Mod..."
4) "Tracks menu > Mix and Render" (mix down to one track)
5) "File menu > Export Multiple"

The modification is that the labels have the name of the audio track that is being labelled. Export Multiple is able to use the label text for naming the exported files.
You may need to tweak the procedure to achieve what you want.



Seems to work really well.
https://i.imgur.com/Qu3YdX5.png

However I'm surprised that this works. I thought I needed the sound finder, not the silence finder?
The silence finder perfectly places the markers directly where the sound starts.
But why? I mean I'm just confused by the wording. Why would I want to "find" the silence instead of the sound? :D

Thank you very much for that script and idea, really saved me a ton of work.

But just out of curiosity, why can't we use export multiple in chains?
It seems to be saving its serialized settings somewhere, so why not use that as input parameter (the parameter being the settings file-filename to load)?
I suppose it has to do with how the mods are generally made to interact?

Oh and also ,that mod you made seems to be really really useful for a lot of cases. When would you ever *not* want to keep the original name? Shouldn't that be the "default" implementation of that plugin?

Anyway thanks again for solving this! :)
I'll give some more feedback once I have time to work on the full set of files. (I just tested with ~10 right now)
dadude123
 
Posts: 6
Joined: Sun Oct 08, 2017 9:49 pm
Operating System: Windows 7

Re: Chain Processing + Find Sound + Export Multiple

Permanent link to this post Posted by dadude123 » Wed Oct 11, 2017 12:55 am

There is one problem.
https://i.imgur.com/Ne6tFl0.png

Since the silence at the beginning of the file is too short, it doesn't place a label.
Can I add silence in front of every track? It doesn't seem to work when I have multiple tracks open (or maybe I just don't know how to do it correctly).
dadude123
 
Posts: 6
Joined: Sun Oct 08, 2017 9:49 pm
Operating System: Windows 7


Return to Windows



Who is online

Users browsing this forum: Google [Bot] and 23 guests