LOT Winter School 2019

RM1 - Scripting for PRAAT

David Weenink


Title of the course: Scripting in PRAAT

Teacher: dr. D.J.M. Weenink

Address: Spuistraat 134, room 6.33

Email address: David.Weenink@uva.nl

website teacher: http://www.praat.org/

Course info
Level: RM1 (First year Research Master Linguistics)

Course description:

If you are working with a lot of speech files and you have to do analyses on these files, it comes in handy to be able to automate this analysis process as much as possible.

This course will introduce Praat scripting. By using scripts it will be much easier to replicate your analyses and to communicate with others about what you have done and how you have done it.

After this course you will be able to read and understand scripts written by others, and, you will be able to write your own Praat scripts to do your analyses.

Day-to-day program


Expressions: operator precedence

Numerical and string expressions

Numerical and string variables.

Writing to the Info window


Conditional expressions (if then else), loops (for, do while), forms

Feedback on yesterdays assignment


Procedures, working with objects (selecting and removing objects)

File i/o and absolute and relative filepaths.

Feedback on yesterdays assignment


Working with a list of files in a directory.

Setting up the core scripting structure for getting analysis result for specified intervals from a tier in a TextGrid.

Feedback on yesterdays assignment


Elaboration of some scripts.

Arrays,vectors and hashes

Feedback on yesterdays assignment.

Reading list

Weenink (2018), Speech Signal Processing with Praat.

The pdf of the book can be downloaded from http://www.uvafon.hum.uva.nl/david/sspbook/sspbook...

Chapter 4 is about scripting

Background and preparatory readings:

Read the first three chapters in the book.

Course readings (obligatory):

Lecture 1 - 5 : Corresponding parts in the book and also manual pages in the Praat Help window about scripting.