I think you can do much simpler than that
Assuming you have got the TextGrid from TextGrid (silences)...
Down to Table... no 3 yes no
nRows = Get number of rows
nSilences = 0
durSilence = 0
for iRow to nRows
text$ = Get value... iRow text
if text$ = "silent"
nSilences += 1
start = Get value... iRow tmin
end = Get value... iRow tmax
duration = end - start
durSilence += duration
endif
endfor
printline This file contains 'nSilences' silent pauses
printline with a total duration of 'durSilence:3' seconds
That is you just convert to a Table then you look for the rows corresponding to a silent interval and count them and at the same time
calculate the duration of each silence and add it to a running total duration.
Try it!
best
daniel
Hi
I followed some simple steps to find out Total Silent Pause Duration and No.of Silent Pauses. I hope this method is correct. Would anyone like to try them and give me feed back on the following steps?
Steps to find out Total Pause Duration
1. Select the sound file
2. Annotate
3. ToTextGrid (silences)...
4. Change minimum silent interval duration to 0.35 (350millisecond is needed for my work,so 0.35) or any other changes u want.
5. Click the sound file & TextGrid silences together
6. Click Extract
7. Extract intervals where...,
8. Change "...the text" to silent, click ok
9. Several sound files will be created (e.g, Sound [soundfilename]_silent_1)
10. Click Combine
11. Concatnate
12. Sound chain will be created, Play the Sound chain (check if u r satisfied)
13. Click View&Edit, check Total Duratuion or click Query, Query TimeDomain, Get total duration.
Steps to find out No. of Silent Pauses
1. Click TextGrid silence(file name)
2. Query
3. Count Labels
4. Change Label text to silent, click ok
5. Praat info window opens showing no. of labels (i.e. no. of silent pauses).
--------------------------------------------------------------------------------------------------
alternative email: mailto:djhirst-BUHhN+***@public.gmane.org
CNRS Laboratoire Parole et Langage (UMR 7309) - salle B012
Université de Provence, 5 avenue Pasteur BP 80975
tel: +33-4-1355-3628 secr: +33-4-1355-3632/4
13604 Aix-en-Provence, Cedex 1, France
---------------------------------------------------------------------------------------------------
Speech Prosody SIG http://aune.lpl.univ-aix.fr/projects/sprosig/
Speech Prosody list: http://uk.groups.yahoo.com/group/speech_prosody
Praat-users list: http://groups.yahoo.com/group/praat-users
List of my publications: http://www.lpl-aix.fr/publi/57
---------------------------------------------------------------------------------------------------
------------------------------------
To Post a message, send it to: praat-users-***@public.gmane.org
To Unsubscribe, send a blank message to: praat-users-unsubscribe-B11MqFFcr06IwRZHo2/***@public.gmane.orgm
To consult archives : http://egroups.com/list/praat-users/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://uk.groups.yahoo.com/group/praat-users/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://uk.groups.yahoo.com/group/praat-users/join
(Yahoo! ID required)
<*> To change settings via email:
praat-users-digest-hHKSG33Tihj7tPOJXBBAsVpr/1R2p/***@public.gmane.org
praat-users-fullfeatured-hHKSG33Tihj7tPOJXBBAsVpr/1R2p/***@public.gmane.org
<*> To unsubscribe from this group, send an email to:
praat-users-unsubscribe-hHKSG33Tihj7tPOJXBBAsVpr/1R2p/***@public.gmane.org
<*> Your use of Yahoo! Groups is subject to:
http://info.yahoo.com/legal/uk/yahoo/utos/en-gb/details.html