|
None of these scripts could have been written without the direct help or training from Francisco Torreira, to whom I am very grateful. The following are scripts that I created or contributed to creating. I have used them in my doctoral research or made them for other people's research, and I hope they can be useful to others as they have been to me. If you use them, please let me know.
insertf0markers: This script retrieves the time of the lowest and highest f0 values in each interval of designated interval tier, and marks those points in a new point tier in the TextGrid.
IP-AP duration: This script lists the duration in ms of each interval on two specified tiers. I use it to obtain the duration of each IP and AP interval of my files.
numberIP: This script counts the number of intervals in 3 given tiers (IP, AP, syllables).
drawobject: In a Praat picture window, this script draws a neat picture of the sound waveform, spectrogram, pitch object, and TextGrid, with boundary markers and Hz marks on the left. All you need in the object window is a Sound and a TextGrid. This script will take care of the rest. You will even be able to specify the F0 range that you need for the pitch object in a form. Here's an example of the end product.
f0value: This script measures F0 values of all tones labeled in a tier, and puts the labeled values (labels are syllable and word that contain the tones, as well as the name of the tones) in the info window.
sylldur: This script measures the duration of all intervals of a TextGrid tier (intended for syllable duration measurement, but can be applied to segments as well). There is no need to have objects present in the window, as it will work with existing TextGrid files located in a folder that the user specifies at the beginning of the operation. The script calculates the duration and puts the information in ms in the info window, along with the interval labels from which it retrieved the values.
alignment: This script measures time alignment of all tones labeled in a tier, and puts the labeled values (labels are syllable and word that contain the tones, as well as the name of the tones) in the info window.
extracttones: This script searches for a specific tone label and extracts the IP interval in which the matched tones are located, along with all tiers contained in that interval and the corresponding soundfile. This is useful to avoid creating numerous small IP-length files to create drawings, for instance.
extractsyllables: same as above, but extracts syllable tier.
search: This script searches for a specific word in a LongSound file and extracts all tiers contained in the IP interval in which those words are contained, along with matching sound files. This works in a similar way as the two scripts above, but in LongSound files.
formants: This script opens all .wav and .TextGrid files in a folder (path to be specified at the beginning) and measures the f1 and f2 values (ERB) at a time marked by a point boundary in the TextGrid. It puts the retrieved information in the info window and also writes it in a text file, along with name of file and boundary label. Tier 1 is the point tier containing the labels.
openwav: This script opens a form where a directory path can be specified. All .wav files located in specified folder are opened and matching TextGrids are created. Each TextGrid has 1 point tier (vowel).
 |