Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FAQ #3 - Simultaneous Presentation of Audio and Other Stimuli
#16
Hi Ting,

Ok, we have tried to implement it and it isn't working, and I think maybe we have done something unnecessary Smile Instead of having a background audio last 2 seconds after the audio we play, instead the audio is now truncated so the entire audio sentence doesn't actually play all the way through, it just cuts after around 1 second.

Below is the code we are using, in a minimal way, and maybe you can see where we are going wrong?

#### stimuli
# symbol
{
"type": "text",
"content": "♢",
"size": "70px",
"alignment": "center"
}

# p1
{
"type": "audio",
"content": "p1.mp3",
"visible": false,
"delay": 0.3,
"barrier": false,
"group": "audio"
}

# p2
{
"type": "audio",
"content": "p2.mp3",
"visible": false,
"delay": 0.3,
"barrier": false,
"group": "audio"
}


### response
# voiceRecording
{
"type": "background_audio",
"duration": "%sgroup:audio+2.0",
"onset_detection": true
}



### trial templates
"fixation_cross_practice": {
"type": "basic",
"stimuli": ["fixation", "fixation"],
"duration": 1.5,
"submission_point": false
},

### this is the text + audio template
"audios_practice": {
"type": "basic",
"stimuli": [["symbol","p1"], ["symbol","p2"]],
"responses": ["voiceRecording"],
"submission_point": false
},

"blank_catch_practice": {
"type": "basic",
"stimuli": ["blankScreenSmall", "blankScreenSmall"],
"duration": 1,
"submission_point": true
},


#### procedure
"practiceBlock": {
"trial_templates": ["fixation_cross_practice", "audios_practice", "blank_catch_practice"],
"pattern": {"order": "alternate_random"}
},

Is it ok to group the text and audio together in a trial template? We thought this was the only way to ensure that they both stay on screen at the same time, but maybe that doesn't work here?

If you have any insight into why the audio is now truncated we'd love to find out Big Grin The background audio does record though (though not the extra two seconds), so there is background audio recording on each trial.

If it is easier, I can also add you as a collaborator on the study.
Reply


Messages In This Thread
RE: FAQ #3 - Simultaneous Presentation of Audio and Other Stimuli - by amiefairs - 04-28-2021, 06:29 AM

Forum Jump:


Users browsing this thread: 4 Guest(s)