Discussion:
Silent Pause
t_dasgupta_09
2013-09-04 17:51:50 UTC
Permalink
Hi

I need to calculate no. of silent pauses and total duration of pause time in a <=120 seconds sound file (wav).

I got the TableOfReal silences but I am not able to extract rows where the label is equal to 'silent'. I am getting an error message: No row matches this criterion.

Hope someone can solve this problem.

Thank You
Tannistha
Daniel Hirst
2013-09-05 05:56:38 UTC
Permalink
Tannistha

The TableOfReal is not the object you want - it only contains numbers. What you need is a Table.

So you should do
To TextGrid (silences)... 100 0.0 -25.0 0.1 0.1 silent sounding
Down to Table... no 6 yes no
Here I give the default parameters but you should for example make sure the min-f0 is appropriate for your speaker.

Then you will get a 4 column table with tmin and tmax in the 1st and 4th columns and the "silent" or "sounding" label in the 3rd

best

daniel
Hi
I need to calculate no. of silent pauses and total duration of pause time in a <=120 seconds sound file (wav).
I got the TableOfReal silences but I am not able to extract rows where the label is equal to 'silent'. I am getting an error message: No row matches this criterion.
Hope someone can solve this problem.
Thank You
Tannistha
--------------------------------------------------------------------------------------------------
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
Tannistha Dasgupta
2013-09-05 17:24:36 UTC
Permalink
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).
Paul Boersma
2013-09-06 21:19:04 UTC
Permalink
Post by Tannistha Dasgupta
I hope this method is correct. Would anyone like to try them and give me feed back on the following steps?
yes, these steps look fine. They look like the most economical way of doing this without typing any formulas.
Post by Tannistha Dasgupta
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).
_____

Paul Boersma
University of Amsterdam
Linguistics
Spuistraat 210, room 303
1012VT Amsterdam, The Netherlands
http://www.fon.hum.uva.nl/paul/
Daniel Hirst
2013-09-05 19:26:35 UTC
Permalink
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
Tannistha Dasgupta
2013-09-06 05:20:46 UTC
Permalink
Thank u Daniel for the script to find out No. of silent pauses and total
duration of silent pauses. The script worked perfectly for me. Yes, its
much easier than the way i suggested!
Post by Daniel Hirst
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).
--------------------------------------------------------------------------------------------------
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
http://groups.yahoo.com/group/praat-users
http://www.lpl-aix.fr/publi/57
---------------------------------------------------------------------------------------------------
Loading...