
Almost all reading assignments are complete and usable but some workshops are still missing. *This tutorial is still under development. Most sessions are divided into reading assignments followed by a hands-on workshop, where you'll implement what you have learned.* The last session presents and explains a 'real-life' script that implemets most features and concepts discussed in this tutorial.Īt the end of this tutorial you'll be able to develop your own Praat scripts and-more important-you'll be able to make sense of the relevant Praat help documents to extend your scripting skills.

Each session of the tutorial is dedicated to a concept or feature of the Praat scripting language. With this audience in mind, Phonetics on Speed attempts to pave the way and provide a basic entrance to the world of Praat scripting. usually do not have any programming experience. In my experience, this presents a significant barrier for many Praat users, because Praat users with backgrounds such as philology, socio-linguistics, speech and language therapy etc. Therefore, running Praat by scripts is tantamount to computer programming. The Praat scripting language is a programming language, a simple one but a programming language nonetheless. Praat scripting is a very powerful tool thanks to the Praat scripting language. construct sophisticated production and perception experiments.If you notice these symptoms you should consider to endeavor the master level of praatology: operating Praat by script. Given the complexity of the Praat GUI this is no small achievement and is sufficient for data exploration and the occasional mini study.īut as soon as the amount of data increases and analysis steps have to be repeated over and over, operating the Praat GUI becomes tedious and prone to error. If you are one of these users you are able to accomplish more or less complex phonetic analyses by clicking buttons, selecting menu items, and typing parameters into forms. An increasing number of users with various backgrounds have mastered the basic level of praatology: operating the Praat GUI (graphical user interface). We'll come back to this issue as soon as our scripts grow and include loops and other fancy stuff.Over the last years, Praat evolved to a standard tool for phonetic analysis. Indent lines within loops, conditionals, and similar blocks (forms, procedures etc.).

QUOTPRAAT SCRIPT CODE

That's a very common and useful practice during the testing/debugging of scripts. Reactivation is just a matter of deleting the comment indicator. This allows us to deactivate statements without deleting them. This is best done as a comment section at the beginning of the script.Īnother more practical benefit of comments is the possibility to comment out statements.
QUOTPRAAT SCRIPT DOWNLOAD
If you distribute your scripts among your colleagues or offer them for download it's imperative to include at least some usage information and requirements. That's the moment when you'll be grateful for any comment that tells you what the script actually does. More often than not you'll ask yourself what a given line or sequence of lines contributes to the script. This could be useful for yourself if you revisit a script you coded months ago and try to adapt it to your current task. So, what's the benefit of comments? First, with comments you can explain your script. Comments are lines which are ignored during the execution of the script. Syntactic Structure Comments & WhitespaceĪs any other scripting/programming language the Praat scripting language allows comments.
