Praat script resources
Page contents
How
to use this page
Some
basic operations
Directory
of scripts by type and description
Links:
other online collections of Praat scripts
How to use this page
How to run a script
Scripts save Praat users
time and effort by automating a sequence of operations. To run a Praat
script, go to the Control menu in the Praat objects window
and select New Praat script. Then pull up the code for the desired
script by clicking on one of the links below. Copy all the code there (e.g.
highlight and Ctrl-C on a PC) and paste it into the new untitled
script window. Finally, select Run > Run (or type Ctrl-R)
in the untitled script window to execute the script.
How to save a script or add it to the menu
In the open untitled script window with the new script pasted in
the text box, go to the File menu to Save the script to a
convenient location. The Add to fixed menu... command under File
can be used to add the current script to one of the head menus in the Praat
objects window. Menus can be edited (e.g. to remove previously added
scripts) by going to Control > Preferences > Buttons and clicking
on the desired command.
How to script in Praat
See the Scripting tutorial under Help in Praat objects
or try Setsuko Shirai's tutorial.
Some basic operations
Praat script directory by type and description
Directory categories
Sound file management
Text grid management
Analysis of sounds using text grids
Segmentation and extraction
Drawing
pictures
Noise and speech manipulation
More
sound analysis
Sound file management
- get-files (Kevin Ryan)
Open multiple files from the specified directory at once.
- get-files-from-list
(Bert Remijsen)
Open multiple files enumerated in a list in the specified text file (BR's
description).
- remove-all (Kevin
Ryan)
Remove all objects from object list.
- change-sample-rate-or-format
(Mietta Lennes)
Resample and/or change the format of a set of sound files (ML's description).
- concatenate-sounds
(Kevin Ryan)
Concatenate (daisy-chain) two or more selected Sound objects into one
Sound object.
- duplicate-sound (Kevin
Ryan)
Concatenate (daisy-chain) a Sound object with itself the specified number
of times.
- combine-sounds
(Chris Darwin)
Combine (merge) two Sounds with specified gains.
- script-installation-script
(Niels Petersen)
An example of a script used to install several scripts to the Praat menus
(NP's scripts).
- wave-maker (Kevin
Ryan)
Create multiple varied sine waves at once in the object list and/or a
directory (useful for testing scripts).
Text grid management
Analysis of sounds using text grids
Segmentation and extraction
Drawing pictures
Noise and speech manipulation
- create-sustained-vowel
(Niels Petersen)
Create a sustained vowel of the specified type using the LF source model
(NP's scripts).
- create-waveforms
(Niels Petersen)
Create various kinds of waveforms (sawtooth, square, sine, white noise,
pink noise, etc.) (NP's scripts).
- comb-filter-noise
(Chris Darwin)
Generate and comb-filter white noise.
- shannon-am-noise
(Chris Darwin)
Produce Shannon-type AM noise from a selected Sound file using four bands.
- vocal-tract-change
(Chris Darwin)
Change size of vocal tract (formants, but not duration/pitch); cf. vocal-tract-change-dynamic,
which leaves the F0 altered.
- sine-wave-speech
(Chris Darwin)
Create three-formant sine-wave speech using selected Sound object.
- metronome
(Hugo Quené)
Simple one-beat metronome; see HQ's scripts page
for several more complex metronomes.
Careful: the default durations
are very long; they should be set shorter before testing, lest Praat be
tied up for minutes.
Also, references
to mywhoosh.wav should be changed to some extant WAV or removed.
More sound analysis
Praat scripts: links and online collections
In no particular order:
- Praat: main Praat
website (e.g. download the program).
- Praat
users group: Yahoo! discussion group for Praat users; some scripts
available in database.
- Mietta
Lennes: a large number of scripts, many quite involved, with very informative
descriptions.
- Setsuko Shirai:
a PDF introduction to Praat scripting and a few scripts.
- Johan
Frid: one of the largest collections online, but most of the scripts
are old and need to be updated to work.
- Chris
Darwin: CD's advanced
scripts for e.g. sine-wave speech, Shannon AM-noise speech, resizing vocal
tract, etc.
- Paul Boersma:
explore links for various highly tailored scripts associated with PB's 1998
dissertation.
- Katherine
Crosswhite: the code of the first few scripts is very well documented;
good for learning Praat scripting.
- Hugo
Quené: some neat scripts, including several metronomes.
- Niels
Petersen: 20-some scripts at the bottom.
- Bert
Remijsen: some very well explained scripts, with sample input.
- John Tøndering:
a “Label.man” (annotate from ManPage) package plus a few other common scripts.
- Joe
Toscano: a few scripts, including “Word Chomper.”
- Gabriël
Beckers: some acoustic scripts, but apparently not formatted properly
with newlines.
- Michael
J. Owren: downloadable GSU PraatTools, "scripts for analyzing, modifying,
and synthesizing sounds using Praat"
[This page is under construction. Links are not guaranteed.]
Most of this page is from 2005 by Kevin Ryan; minor update July
2008 by Pat Keating