Self-paced listening with picture on the screen #769
-
Hi all, Hope you are well. I am new to JsPsych and am designing a self-paced listening task with picture verification. So the participants will see several pictures on the screen while hearing audio segments. Each picture has 6 audio segments. What I have got now seems fail to do so. Could you please let me know if this is viable and how should I make some changes to the code. var fixation = {
type: 'html-keyboard-response',
stimulus: '<div style="font-size:60px;">+</div>',
choices: jsPsych.NO_KEYS,
trial_duration: 1000,
}
singletrial.push(fixation)
let audio_stim = [`sound/1.wav`, `sound/2.wav`, `sound/3.wav`, etc.]
let image_file =['img/Bite1.jpg', etc.]
for (const values of audio_stim)
var trial = {
type: 'audio-keyboard-response',
stimulus: values,
prompt: '<img src= "'+image_file+'">',
};
singletrial.push(trial);
}
var test_procedure = {
timeline: singletrial,
//timeline_variables: trial
}
timeline.push(test_procedure);
//timeline.push(singletrial); |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Can you check for errors in your browser's console? https://developer.mozilla.org/en-US/docs/Tools/Web_Console\ |
Beta Was this translation helpful? Give feedback.
Can you check for errors in your browser's console?
https://developer.mozilla.org/en-US/docs/Tools/Web_Console\
https://developers.google.com/web/tools/chrome-devtools/console