Dear community,
I have a weird problem:
My perfectly written script (thanks to Daniel Hirst) works perfectly well on my computer, it does not so on my friend's.
I had a Praat Version from September 22, hers is from February 23 - so I updated mine and it still works.
She saved it unter ".praat" and it is exactly the same as mine (thought maybe it was due to a default font but no)
She has windows, I have a Mac - does that make a difference?
Any idea, where this might be coming from?
Thanks
Loremi
The Script
# Praat script: Get pause durations
# version: 2022-09-10
# - get mean duration of pauses
# - not counting initial or final pause
# author: Daniel Hirst <djhirst@...>
tier = 1
pause_label$ = "silent"
nIntervals = Get number of intervals: 1
nPauses= 0
sumPauses = 0
clearinfo
appendInfoLine: "pause", tab$, "duration"
for iInterval from 2 to nIntervals-1
label$ = Get label of interval: tier, iInterval
if label$ = pause_label$
nPauses += 1
start = Get start time of interval: tier, iInterval
end = Get end time of interval: tier, iInterval
duration = end - start
sumPauses += duration
appendInfoLine: nPauses, tab$, fixed$(duration, 3)
endif
endfor
meanPause = sumPauses/nPauses
appendInfoLine: "number of pauses: ", nPauses, "; mean duration: ", fixed$(meanPause, 3)