Autopopulate the duration of an annotation?

Hi!
I am currently working on a project where I need to keep track of the length of certain annotations. I know if I select an annotation, I can see its duration when I hover my mouse over it, but I’m wondering if there is a way to populate this into its own tier?

As an example:

The length of this section of silence is 1.220s. Can I create a tier with only the duration values in line/synced with the annotation from which it came?

Happy to explain in more detail if this doesn’t make sense!

Best,
Jordan

Hi,

That information is available in several export formats (obviously, just mentioning it here) and also visible in the Grid Viewer in the tab pane at the top, but it is also possible to create a tier with annotations having the duration as their value. There is no dedicated function for that though, but what can be done is e.g. the following:

  • create an additional empty tier
  • select Tier->Create Annotations from Subtraction.... and select the Speech/Silence tier and the empty tier
  • in the next step select Subtraction based on "Exclusive or" logic
  • in the next step enter a name for the new tier (which will become an independent tier) and select a tier type for it
  • in the next step there are options for the contents of the new annotations, the first one concerns the duration in a the desired time format
  • click Finish

The resulting tier will be an independent, top-level tier. If you would like to have it as a dependent tier of the original, you could use Tier->Copy Tier... or Tier->Change Parent of Tier... as a next step.

Note that the annotation values are not ‘dynamic’ (as opposed to the duration column in the Grid Viewer): if the duration of the original annotations is changed, the duration values are not automatically updated. The corresponding annotation with the duration would have to be updated manually in that case, or the whole procedure could be performed again.

Best,
Han

Hi Han,
Thank you so much! You’ve just saved me hours of work. I really appreciate your help!
Best,
Jordan