Setswana_scripts | praat script archive
This page lists the praat scripts I wrote for Setswana Project,Dept of Linguistics,Georgetown University.Funded by NSF,PI:Elizabeth Zsiga,postdoc:One Tlale.
Scripts Download
File1:[download]
Name: Obtain statistical values from multiple Spectral Slice
Date:04/12
Description: get the center of gravity, standard deviation, skewness and kurtosis from a selection of spectral slices.
Name: Obtain statistical values from multiple Spectral Slice
Date:04/12
Description: get the center of gravity, standard deviation, skewness and kurtosis from a selection of spectral slices.
File2:[download]
Date:05/12
Name:Update of file 1
Description:This is a update version of File1. If the textgrid is also selected, it can also get the label of each segment that the each slice is associated with. It only works with one Textgrid object (one and only in the Praat Object window) and simultaneously with unlimited number of spectral slices.(the bug in this script is that it only works when you start from the first interval, but not when you start in the middle, in which case it will not return the correct label.However, update to this script is not supported currently. Please see script no.11 for an alternative).
Date:05/12
Name:Update of file 1
Description:This is a update version of File1. If the textgrid is also selected, it can also get the label of each segment that the each slice is associated with. It only works with one Textgrid object (one and only in the Praat Object window) and simultaneously with unlimited number of spectral slices.(the bug in this script is that it only works when you start from the first interval, but not when you start in the middle, in which case it will not return the correct label.However, update to this script is not supported currently. Please see script no.11 for an alternative).
File3:[download]
Date:06/12
Name: Get F0/F1 into and out of closure on multiple files
Description: This script gets all the F0/F1 into and out of closure data from either a single file of word list (including a sound file and a textgrid file), or it also works when you select multiple sound/textgrid file combinations. Please be sure to select them correctly so that they appear in pair and in order in the Praat Object window, such as in the order of Textgrid baka_N_S1, Sound baka_N_S1,Textgrid baka_S1,Sound baka_S1, etc. To use on multiple files, open them in order in the Praat Object window and select all files you want to deal with at the same time. The script will return the label (word tier), label (F0/F1 tier), F0 and F1 for all the words selected from all these files (each file contains typically three repetitions of the same words in the current project).
Date:06/12
Name: Get F0/F1 into and out of closure on multiple files
Description: This script gets all the F0/F1 into and out of closure data from either a single file of word list (including a sound file and a textgrid file), or it also works when you select multiple sound/textgrid file combinations. Please be sure to select them correctly so that they appear in pair and in order in the Praat Object window, such as in the order of Textgrid baka_N_S1, Sound baka_N_S1,Textgrid baka_S1,Sound baka_S1, etc. To use on multiple files, open them in order in the Praat Object window and select all files you want to deal with at the same time. The script will return the label (word tier), label (F0/F1 tier), F0 and F1 for all the words selected from all these files (each file contains typically three repetitions of the same words in the current project).
File4:[download]
Date:09/12
Name: Add pitch tier and mark maximum pitch (multiple files)
Description: This script will insert a Point Tier 5 named PitchSZ into all the selected Textgrids, and then insert a point in the Tier 5 where the peak (maximum pitch F0) of the speech signal is located. This peak is defined as the peak F0 within the second target words (each file is marked with two words on Tier 1,but only the second is the target word). To use on multiple textgrid/sound files, simply load them up in the Praat Object window and make sure they appear in pair(sorted by name), and then select them all.
Date:09/12
Name: Add pitch tier and mark maximum pitch (multiple files)
Description: This script will insert a Point Tier 5 named PitchSZ into all the selected Textgrids, and then insert a point in the Tier 5 where the peak (maximum pitch F0) of the speech signal is located. This peak is defined as the peak F0 within the second target words (each file is marked with two words on Tier 1,but only the second is the target word). To use on multiple textgrid/sound files, simply load them up in the Praat Object window and make sure they appear in pair(sorted by name), and then select them all.
File5:[download]
Date.10/12
Name: Create and save textgrid for multiple sound files
Description: This is one of the most basic and useful praat script: to create textgrids. #this script creates textgrids for all the selected Sound objects (multiple selection ok). The textgrids contain four tiers: word, seg, syll ,pitch. The textgrids will be automatically saved to your desktop. You can also modify the tier names and numbers of the textgrid to tailor your specific needs.
Date.10/12
Name: Create and save textgrid for multiple sound files
Description: This is one of the most basic and useful praat script: to create textgrids. #this script creates textgrids for all the selected Sound objects (multiple selection ok). The textgrids contain four tiers: word, seg, syll ,pitch. The textgrids will be automatically saved to your desktop. You can also modify the tier names and numbers of the textgrid to tailor your specific needs.
File6: AUTOSEG
Date:11/12
Name: Automatic Segmentation and Markup in Praat Textgrid for Setswana(Autoseg 1.0)
Please see AUTOSEG 3.0 page for details.(click the link above)
Date:11/12
Name: Automatic Segmentation and Markup in Praat Textgrid for Setswana(Autoseg 1.0)
Please see AUTOSEG 3.0 page for details.(click the link above)
File 7: [download]
Date: 12/10/12
Name: Get F1 and F2 measurements of Vowels
Description: This script carries out a basic function of measuring F1,F2 values out of all the designated vowels a file (or multiple files in a Praat object window) to create a Vowel Space chart (you need a tier to designate at what time point exactly you're measuring the vowel). Detailed instruction is provided in the beginning of the script. User will give the tier number for the word tier and the vowel measurement tier where the position that the measurement takes place is indicated. User also gives a number as to how many formants the LPC algorithm will return in the measurement (default is 5, but for instance, a small female with a higher voice range will typically fit for 4 formants under 5000Hz, while others 6, etc).
Date: 12/10/12
Name: Get F1 and F2 measurements of Vowels
Description: This script carries out a basic function of measuring F1,F2 values out of all the designated vowels a file (or multiple files in a Praat object window) to create a Vowel Space chart (you need a tier to designate at what time point exactly you're measuring the vowel). Detailed instruction is provided in the beginning of the script. User will give the tier number for the word tier and the vowel measurement tier where the position that the measurement takes place is indicated. User also gives a number as to how many formants the LPC algorithm will return in the measurement (default is 5, but for instance, a small female with a higher voice range will typically fit for 4 formants under 5000Hz, while others 6, etc).
File 8:[ore-][xo-][N-][iso-]
Date:1/12/13
Name:get duration out of targeted segments(used w/autoseg 2.0)
Description: These scripts read duration information out of textgrid files with targeted segments. This is subsequently used to derive statistical information on the duration values for different environments entered in the initial form of the autoseg script above.
Date:1/12/13
Name:get duration out of targeted segments(used w/autoseg 2.0)
Description: These scripts read duration information out of textgrid files with targeted segments. This is subsequently used to derive statistical information on the duration values for different environments entered in the initial form of the autoseg script above.
File 9:[download][screenshot][view code]
Date:4/5/13
Name:Get F0-F1 into and out of closure values
Description:this is a sophisticated script comparing to the first f0-f1 extraction script listed above. This script does three tasks related to f0-f1 retrieval#first, get the reference point for measuring the f0-f1 into/out of closure;second, decide exact point of measurement (move 0.005s vs.0.015 by segments);third,read f0-f1 and return values to user.MAKE SURE:1.line up boundaries on tiers;2.burst is labeled B or b.Basically it will handle the differences between 0.005 and 0.015s, between cases with and without burst, and between isolation and non-isolation cases. Boundary alignment in the existing textgrid is crucial for deriving the correct value from the script. User doesn't have to line up perfectly the very first boundary of each repetition on tier 1 and 2. But you will have to make sure:(1) end of closure for consonant and beginning of burst boundary must line up exactly;(2) the burst must be labeled B or b (if label is empty then it will treat it as no burst).Now it can also handle cases with one burst or two bursts(see screenshot). I haven't treated cases with three bursts, but I think that would be rare case and we can do them manually. Finally, in the beginning you will have to enter the output directory as you did in the auto segmentation script, in order to save the textgrid with inserted f0--f1 points to the correct location.
Date:4/5/13
Name:Get F0-F1 into and out of closure values
Description:this is a sophisticated script comparing to the first f0-f1 extraction script listed above. This script does three tasks related to f0-f1 retrieval#first, get the reference point for measuring the f0-f1 into/out of closure;second, decide exact point of measurement (move 0.005s vs.0.015 by segments);third,read f0-f1 and return values to user.MAKE SURE:1.line up boundaries on tiers;2.burst is labeled B or b.Basically it will handle the differences between 0.005 and 0.015s, between cases with and without burst, and between isolation and non-isolation cases. Boundary alignment in the existing textgrid is crucial for deriving the correct value from the script. User doesn't have to line up perfectly the very first boundary of each repetition on tier 1 and 2. But you will have to make sure:(1) end of closure for consonant and beginning of burst boundary must line up exactly;(2) the burst must be labeled B or b (if label is empty then it will treat it as no burst).Now it can also handle cases with one burst or two bursts(see screenshot). I haven't treated cases with three bursts, but I think that would be rare case and we can do them manually. Finally, in the beginning you will have to enter the output directory as you did in the auto segmentation script, in order to save the textgrid with inserted f0--f1 points to the correct location.
File 10.1:[download][screenshot1][screenshot2][view code]
Date:4/15/13
Name:Get peak location relative to syllable onsets
Description: This script is for the Serbian pitch accent project of Dr.Zsiga (GU) and Dr.Draga(Cornell). User will select all the textgrid and sound pairs in the praat object window and run the script. It returns the location of pitch peak point relative to the onsets of each syllable in the target word. In case no peak point is labeled in the tier 5 (which I don't remember if there are such cases where the peak is really flat. Even in these cases i think the previous peak-finding script may have inserted a P-t and I might have left it there. For the flat-contour cases you can look at the spreadsheet for documentation), it will issue an error message reminding you that no P-t is found and you should disregard the results for this file. In this case, the result is a bogus result that is random. Please see screenshot2 for such a case.Naming convention: If the filename begins with 1, the target word is the second word in the phraseIf the filename begins with 2, the target word is the first word in the phrase; If the second digit in the filename is 1 or 2, the target is bisyllabic;If the second digit in the filename is 3, 4, or 5, the target is trisyllabic.
Date:4/15/13
Name:Get peak location relative to syllable onsets
Description: This script is for the Serbian pitch accent project of Dr.Zsiga (GU) and Dr.Draga(Cornell). User will select all the textgrid and sound pairs in the praat object window and run the script. It returns the location of pitch peak point relative to the onsets of each syllable in the target word. In case no peak point is labeled in the tier 5 (which I don't remember if there are such cases where the peak is really flat. Even in these cases i think the previous peak-finding script may have inserted a P-t and I might have left it there. For the flat-contour cases you can look at the spreadsheet for documentation), it will issue an error message reminding you that no P-t is found and you should disregard the results for this file. In this case, the result is a bogus result that is random. Please see screenshot2 for such a case.Naming convention: If the filename begins with 1, the target word is the second word in the phraseIf the filename begins with 2, the target word is the first word in the phrase; If the second digit in the filename is 1 or 2, the target is bisyllabic;If the second digit in the filename is 3, 4, or 5, the target is trisyllabic.
File 10.2: [download][screenshot][view code]
Date:4/26/13
Name:Update of File 10.1
Description: This script is per the request of Dr Zsiga from File 10.1 (Serbian Pitch Accent). It will return the percentage of duration of [peak-onset] for syllables divided by the duration of the syllables. Negative and >1 numbers are also rest to 0 and 1. It will also return a list of durations of all the vowels.
File 11: [view code]
Date:5/1/13
Name:Get statistical values from fricative spectral slices
Descriptions:[documentation]
Date:4/26/13
Name:Update of File 10.1
Description: This script is per the request of Dr Zsiga from File 10.1 (Serbian Pitch Accent). It will return the percentage of duration of [peak-onset] for syllables divided by the duration of the syllables. Negative and >1 numbers are also rest to 0 and 1. It will also return a list of durations of all the vowels.
File 11: [view code]
Date:5/1/13
Name:Get statistical values from fricative spectral slices
Descriptions:[documentation]