Audio Stimulus¶
An audio stimulus plays an audio clip.
Required Properties¶
type¶
content¶
- Definition: A pointer to the underlying resource
- Possible values: Must be the file name of the audio file (you will be prompted to upload the audio file)
- Format support is dependent upon the participant's browser. See Tips tab for further information.
- mp3 tends to work well across our supported browsers and all major operating systems (Windows, Mac, and Linux). However, there is a chance that older Linux systems with older browsers will not support this format.
- There are many ways of converting your audio stimuli to the desired format. For audio transcoding, check out fre:ac.
Optional Properties¶
autoplay¶
- Definition: Whether or not to start playing the audio without participant action
- Possible values:
true
orfalse
- Default:
true
- Setting this option to
false
nullifies the delay parameter. - This parameter affects the audio when used as a choice response as well.
barrier¶
- Definition: If set to
true
, all subsequent stimuli and responses will not be displayed until this audio clip finishes playing - Possible values:
true
orfalse
- Default:
true
In trials using the above stimulus code, other stimuli and responses will be displayed at the same time as the audio plays.
In trials using the above stimulus code, the audio will play before other stimuli and responses are displayed. This code is equivalent to code where the barrier property is not specified.
In trials using the above stimulus code, the audio will play before other stimuli and responses are displayed. This code is equivalent to code where the barrier property is not specified.
delay¶
Info
This property is used for presenting multiple stimuli on a trial in a sequence. To implement inter-trial intervals, see the delay parameter in trial templates instead.
Warning
The delaying of multiple stimuli on a trial does NOT have a chain effect. That is, the delay of any stimulus on a trial is always relative to the onset of that trial or the end of the last stimulus acting as a barrier.
- Definition: Delay the onset of a stimulus by a certain number of seconds, relative to (1) the onset of a trial if there are no stimuli acting as barriers or (2) the end of the last stimulus acting as a barrier.
- Possible values: A number in seconds (decimals are supported)
- Default:
0
(no delay)
The above code introduces a delay of 300 milliseconds.
- This property is optional but recommended for an audio stimulus. If not set, the audio may appear to start abruptly on a new trial.
parent¶
- Definition: If specified, then the properties of the specified stimulus will be inherited by this stimulus, unless a property of the same name is defined in this stimulus
- Possible values: The name of another defined stimulus
Here, the audio1 stimulus inherits the delay property of audio0. audio1 does not inherit the visible property of audio0 because the stimulus definition of audio1 has its own specified visible property.
visible¶
See Also¶
The Tokenized Audio Stimulus