Praat Scripts

Brief intro to Praat

Here are a few Praat Scripts that I have written. Praat scripting is fairly simple, and can really improve the praat experience in two ways:

  1. Make your workflow faster by automating repetitive tasks
  2. Make your results more consistent by automating tasks

Here a few tips to getting started with Praat scripting:

  • In case you don’t already know, Praat is an acoustic analysis software
    program. You can use it to view spectrograms of speech (and other) sounds,
    and make many different acoustic measurements. It also includes some basic
    statistics, and some routines to run basic perceptual experiments. It runs
    on all major computer platforms, is free, and is fairly small in size. You
    can download it from praat.org
  • Praat has a pretty good manual, so be sure to read it, especially the
    part on scripting. There is also a href='http://uk.groups.yahoo.com/group/praat-users/'>Praat users group,
    where many of your questions can be answered. (Again, be sure you have read
    the manual and searched around a bit before asking a question to the group).
  • A good way to learn is by example, which is why I am providing some
    scripts here.
  • To try out these scripts, open Praat and select Open Praat
    Script
    from the Praat menu.
  • 3 more tips that I wish someone had told me:
    1. Variable names cannot start with capital letters.
    2. Whitespace matters. Sometimes a script will not work if you have a
      space at the end of a line. Be careful!
    3. Praat has a history recording function. Every time you click your
      mouse, or select something from a pulldown menu, the program is
      recording this and saving it. You can then paste this history into a
      script using the script editor’s Edit > Paste History
      function.

Example Scripts

These scripts are provided without warranty. I have tried to insert comments where appropriate, so hopefully they should be relatively easy to use. If you find any mistakes or bugs, or if you make any improvements, I would very much like to know. Please contact me at robfelty æ umich.edu

To download one script, right-click on the script name. You can also download all the scripts (along with a few helper files) as a .zip or .tar.bz2 file.


Warning: opendir(/home/robfelty/robfelty.com/academic-files/praat) [function.opendir]: failed to open dir: No such file or directory in /home/robfelty/robfelty.com/wp-content/themes/robfelty/praat.php on line 50