pedroamaranteandrade
2012-07-19 12:18:30 UTC
Dear all,
I am relatively new to praat scripting and I am struggling with a few things.
1o. - I cannot produce a F0 listing using script that preserve the window length of 0.03. It gives me a listing with no --undefined-- values. I need to compare F0 - F1, therefore need with the same time(s)
2a. - How can I extract F0 and F1 producing a .txt file with both at the same time(s) steps.
I am using the following script for the first part:
echo 'defaultDirectory$'
Create Strings as file list... fileList 'defaultDirectory$'
nb_files = Get number of strings
for person from 1 to nb_files
select Strings fileList
file_name$ = Get string... person
name$ = "'file_name$'" - ".wav"
Read from file... 'defaultDirectory$'\'file_name$'
select Sound 'name$'
Extract one channel... 1
To Pitch... 0.03 45 300
Down to PitchTier
Down to TableOfReal... Hertz
To ContingencyTable
Save as text file... 'defaultDirectory$'\'file_name$'+ ".txt"
select all
minus Strings fileList
Remove
endfor
Thank you very much for your help.
Best regards,
Pedro
------------------------------------
To Post a message, send it to: praat-users-***@public.gmane.org
To Unsubscribe, send a blank message to: praat-users-unsubscribe-***@public.gmane.org
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://uk.docs.yahoo.com/info/terms.html
I am relatively new to praat scripting and I am struggling with a few things.
1o. - I cannot produce a F0 listing using script that preserve the window length of 0.03. It gives me a listing with no --undefined-- values. I need to compare F0 - F1, therefore need with the same time(s)
2a. - How can I extract F0 and F1 producing a .txt file with both at the same time(s) steps.
I am using the following script for the first part:
echo 'defaultDirectory$'
Create Strings as file list... fileList 'defaultDirectory$'
nb_files = Get number of strings
for person from 1 to nb_files
select Strings fileList
file_name$ = Get string... person
name$ = "'file_name$'" - ".wav"
Read from file... 'defaultDirectory$'\'file_name$'
select Sound 'name$'
Extract one channel... 1
To Pitch... 0.03 45 300
Down to PitchTier
Down to TableOfReal... Hertz
To ContingencyTable
Save as text file... 'defaultDirectory$'\'file_name$'+ ".txt"
select all
minus Strings fileList
Remove
endfor
Thank you very much for your help.
Best regards,
Pedro
------------------------------------
To Post a message, send it to: praat-users-***@public.gmane.org
To Unsubscribe, send a blank message to: praat-users-unsubscribe-***@public.gmane.org
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://uk.docs.yahoo.com/info/terms.html