Label sounds minimum label interval not working?

Here’s a screenshot of part of the instruction manual page for Label Sounds:

But when I set minimum label interval to 1.0 s and run Audacity>Analysis>Label Sounds I find that a lot of < 1s sounds get labeled. Here is an example:


The label track above shows the duration of each sound and silence gap in seconds.

Can someone tell me what I’m missing here? Maybe I’m not understanding the term “minimum sound duration” which seemed self-evident to me but is actually not defined on that manual page.

Thanks,
-Tony

Testing on W10 with 3.6.4 this seems to work fine for me:

@steve IIRC Label Sounds is your “bag of tricks” - do you have anything to add hete please?

Peter.

@waxcylinder So there is something to test on, I’ve added an .mp3 to my post. Although it’s not the same as in my screenshot, it gives the same sort of results.

By the way, note that I’m using a dB log scale in the screenshot

@tlm

So I dowloaded and imported your test MP3 - and that too seems to be working fine for me:

The green circled silences are all less that 1.0 seconds (and thus ignored).

Peter

If I set my min silence duration to 0.2 secs this is what I gat

That, too, looks right to me.

Peter

Thank you @waxcylinder for testing.

So, does that suggest that this is a bug in the Mac version?

I’m using:
Audacity 3.6.4
on a MacAir M3 (2024) running Mac OS 15.1

It would be nice if another Mac user could test it

@tlm

If I get time later today or tomorrow I can dig out my old Macbook Pro running Monterey.

Peter.

It sounds like you are confusing “label interval” with “label length”.

The “label interval” is the amount of space between labels.

Example: Update: This is incorrect. See Label sounds minimum label interval not working? - #15 by steve

Sounds like Steve is correct.

I get exactly the same (correct, and expected) results when I test with 3.6.4 on my MacBook Pro under Monterey macOS 12.7.6

Peter.

@steve this is leaving even me confused - easily done, I know …

I am now totally unclear about the interaction between the settings for Minimum silence duration and Minimum label interval :confounded:

Peter

To make things clear, in this screenshot the sounds are labled “snd” and the intervals “int” (to see everything clealy, I have to right click the animated gif and open it in a new tab)
s

When I run Label Sounds, I do so in 2 ways: first labeling the intervals, then labeling the sounds. In each case, I choose 1s as the “minimum label interval”, yet you can see there are label intervals generated with values below 1s.

Can you explain?

@waxcylinder could you please show a screenshot on the Mac using the exact same parameters I do on the test file I provided?

@tlm

OK …

yields when applied:

Which looks good and as expected to me.

Peter

Several points:

  1. we did not get the same results despite using the same parameters on the same file - the first 2 sounds in mine are combined into one in yours
  2. they look very different because I’m using a log dB scale
  3. the main point, however, is that your result has the same problem mine does: the intervals between some labels are less than the “minimum label interval” of 1s, as shown by my last 3 red arrows here in your image.

So thank you for the confirmation.

Using “test.mp3” from this post: Label sounds minimum label interval not working?
and the settings shown in that post, I get this result:

I made an error in my previous post (it’s been a long time since I used this tool :wink: ) It should have been:

In other words “Minimum label interval” means the interval between one label starting, and the next label starting. As it says in the manual; “Allows short sounds to be grouped within a label region.”

So if you increase the label interval to 1.3 seconds, the second 2 sounds will be grouped together like this:

but with a label interval of 1.1 seconds, they won’t.

This is very helpful – it gives me a way to get past the roadblock I was experiencing.

It also points to the value of pictures. A picture like @steve supplied would be great on the instruction manual page. In my experience with explaining technical material for decades, words that seem like they are so clear to me end up causing confusion in others until I provide pictures.

And also the pictures I draw end up showing me where my thinking was wrong – that happened to me even in this thread!

This plug-in went through A LOT of iterations before it was accepted. Originally I wanted to call the “Minimum label interval” control “Minimum sound duration”, which made more sense to me, but not to the chief QA guy at the time.

@steve can I guess who that was … ?? :wink:

Is it worth raising a GitHub issue and an associated PR to change the wording to that which you originally wanted?
This would make eminent sense to me given that the Analyzer is called “Label Sounds”.

But thank you for that picture with the “Minimum interval label” - now I understand.

@tlm I’m actually the person that curates the manual (for now at least) though Steve wrote most of the text for this page as well as writing the Analyzer too. I’ll see what I can do to improve the Manual for the next release.

Peter.

@tlm

So now the Manual for the upcoming 3.7.0 has some additional words:

And an additional image in the Examples section to provide greater clarity.

Hope that helps …

But this discussion has certainly aided my understanding.

Peter

I think this is something very difficult to communicate.

Both of the above suggests the duration of a single region label surrounding EITHER a silence or a sound. But Steve’s picture makes clear that what’s meant is the duration of BOTH a sound and a silence. It’s difficult for me to figure out how to express this, perhaps something like “the interval between the starts of adjacent sounds”, or more briefly, “sound start interval”.

One way to make this clear is as follows:
Let S1 & S2 be the start and end of a sound, and S3 & S4 the start and end of the following sound. Then we will call S3-S2 the silence between sounds, while S3-S1 will be called the sound start interval.

Of course, Steve’s picture should then include S1, S2,…