

OnsetSilent = Get starting point: tier_silences, i #Loop per silence in order to get the duration of each silence Labtier_silences$ = Get label of interval: tier_silences, i NumberofIntervalsSilent = Get number of intervals: tier_silences #Extract the number of intervals of each tier

# Create the list of objects from the stringĬreate Strings as file list. # Main loop - don't forget to close me at the end of the script #Indicate where the files are and fill the labels info Now I'll read, calculate the duration and print it for the next interval with the same label". There's a point where the script needs to say "okay, I already calculated the duration of THIS interval with the label "silent" and I've printed it. I have written a script that runs with no errors but it prints the duration of the first interval labeled as silent across all other intervals labeled as "silent", instead of printing the duration corresponding to each interval.

So for instance, first interval labeled as "silent" has a duration of 1.8ms, I want that information printed on that interval so that it now reads "1.8" instead of "silent". label "silent") to be replaced by the duration of the interval that I just extracted. I then want the label of the intervals (i.e. There are several intervals labeled as "silent" on that tier. I am trying to write a script that extract the duration of intervals (in ms) which have a label (in this case "silent") from a single tier.
