Make auditory serial presentation stimuli

Psycholinguistic research sometimes requires the stimuli to have specific timing. On this page, I share a Praat script that given the stimulus-onset asynchrony (SOA), makes auditory serial presentation stimuli from continuous speech recordings and their textgrids.

Step 1: Preparation

Download the Praat script.

Gather your stimuli .wav files, and make your .Textgrid files. The .Textgrid files should have the same name as your .wav files. Your textgrid files should contain at least one interval tier that Praat will use to make the serial presentation stimuli. For example, if I want to present a sentence word-by-word, with a between-word SOA = 800ms, my textgrid should look like this, where:

praat1

Additionally, since this script is originally designed to make sentence stimuli, it allows the user to define punctuations. Punctuations will be added as additional silences in the final product. All punctuations should have the same interval name, here I used ‘p’.

Note that while recording this example, the speaker was instructed to speak one word at a time, to avoid co-articulation. This script will of course be able to handle completely natural recordings, provided the correct textgrid annotations.

Step 2: Run the script

Download and run Praat.

Select Praat - Open Praat script…, and select auditory-SP-stimuli-from-textgrid.

If on Mac OS, replace the “" in line 44 with “/”.

Select Run - Run. You will be presented with a user interface, where you can specify a number of variables.

praatui

Define the variables based on what you need, then select OK. Praat will start processing your .wav files.

An example output .wav will look like this in Praat:

praat2

In addition, Praat will also write a .txt file to summarise the onset and offset of each fragment (including the silence):

txt

You can see that Praat isn’t perfect at manipulating the durations, but on the millisecond level, it does a good enough job.

Back to Top ↑