You can see that the example experiment contains four different stimuli: heed, hid, hood, and hud. These are the names of the four stimuli.
Because in the example experiment stimuli are sounds, each of the four stimuli should be in a sound file. The names of these sound files must be identical to the names of the stimuli, bracketed with stimulusFileNamehead and stimulusFileNameTail. Hence, the stimuli are expected in the following four files:
You need not use WAV files. You can also use AIFF files, in which case
stimulusFileNameTail would probably be “.aiff”, or any other type of sound file that Praat supports. But all sound files must have the same number of channels (i.e. all mono or all stereo) and the same sampling frequency.
In this example, the experiment will look for the sound files in the folder Sounds, which has to be in the same folder as your experiment file. In other words, “Sounds/heed.wav” is a relative file path.
Instead of a relative path, you can also supply a full file path. Such a path depends on your computer and on your operating system. For instance, if you have a Windows computer and the stimuli are in the folder D:\Corpus\Autumn\Speaker23, you can write
fileNameHead = "D:\bsCorpus\bsAutumn\bsSpeaker23\bs"
If you have a Macintosh (OS X) or Unix computer and the stimuli are in /Users/mietta/Sounds/Dutch, you write
fileNameHead = "/Users/mietta/Sounds/Dutch/"
But relative file paths will usually be preferred: they are more portable. The advantage of using relative file paths is that you can move your whole experiment (experiment file plus sounds) from one computer to another without changing the experiment file, as long as you put the experiment file in the same folder as where you put the folder Sounds. Or you can put the whole experiment on a USB stick and run the experiment directly from the stick. Since Praat supports the forward slash “/” as a folder separator on all computers, you can run the exact same experiment on Macintosh, Windows and Unix computers, independent of the type of computer where you have created your experiment.
© ppgb 20201229