An audio stimulus plays an audio clip
{
"type": "audio",
"content": "audio1.mp3"
}
audio
{
"type": "audio",
"content": "audio1.mp3"
}
true
or false
true
false
nullifies the delay parameter.{
"type": "audio",
"content": "audio1.mp3",
"autoplay": false
}
true
, all subsequent stimuli and responses will not be displayed until this audio clip finishes playingtrue
or false
true
{
"type": "audio",
"content": "audio1.mp3",
"barrier": false
}
In trials using the above stimulus code, other stimuli and responses will be displayed at the same time as the audio plays.
{
"type": "audio",
"content": "audio1.mp3",
"barrier": true
}
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.
0
(no delay){
"type": "audio",
"content": "audio1.mp3",
"delay": 1.6
}
The above code introduces a delay of 1600 milliseconds.
"audio0":{
"type": "audio",
"content": "audio1.mp3",
"delay": 0.3,
"visible": false
}
"audio1": {
"type": "audio",
"content": "audio1.mp3",
"parent": "audio0",
"visible": true
}
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.
false
, the audio will play in the backgroundtrue
or false
true
autoplay
to false
if the audio plays in the background only.{
"type": "audio",
"content": "audio1.mp3",
"visible": true
}