Returns total duration. If tier index is specified, it returns duration of the tier, if it is not specified, it returns total duration of the TextGrid.
tg.getTotalDuration(tg, tierInd = 0)
TextGrid object
[optional] tier index or "name"
numeric
# NOT RUN {
tg <- tg.sample()
tg.getTotalDuration(tg)
tg.getTotalDuration(tg, "phone")
# }
Run the code above in your browser using DataLab