audio instead of images for the free-sort task #2416
-
Hello, I am trying to have audio recordings instead of images in a free-sort task. That is, I am trying to have images, and when participants click on images, the audio recording will be played. These images/audios should be dragged into the box based on their similarity. Can I do this with the free-sort plugin? Any help on this is welcome. My code so far: var timeline = [];
var preload = {
type: 'preload',
auto_preload: true
};
timeline.push(preload);
var instructions1 = {
type: 'instructions',
pages: [`<p>Welcome to the experiment!</p>` +
`<p>Your task is to listen to the recordings and group them into 8 categories based on their similarity!</p>` ],
show_clickable_nav: true,
post_trial_gap: 1000
};
timeline.push(instructions1);
var trial_1 = {
type: 'free-sort',
stimuli: ['img/AA.png','img/BB.png','img/CC.png','img/DD.png', 'img/FF.png', 'img/EE.png', 'img/GG.png','img/HH.png', 'img/II.png', 'img/JJ.png','img/KK.png','img/LL.png','img/MM.png', 'img/NN.png', 'img/OO.png', 'img/PP.png','img/QQ.png', 'img/RR.png', 'img/SS.png', 'img/TT.png', 'img/UU.png', 'img/VV.png', 'img/WW.png', 'img/XX.png', 'img/YY.png', 'img/ZZ.png','img/AB.png','img/CD.png','img/EF.png','img/GH.png', 'img/IJ.png', 'img/KL.png', 'img/MN.png','img/OP.png', 'img/QR.png'],
stim_height: 25,
stim_width: 70,
sort_area_height: 600,
sort_area_width: 600,
sort_area_shape: "square",
border_color_in: '#DCDCDC',
border_color_out: 'red',
scale_factor: 1.5,
prompt: 'Please move the images inside of the square. Each image corresponds to one audio recording you were given to listen to. Please, group all the audio recordings into 8 groups by dragging and dropping the images inside of the square. 8 groups do not need to have equal number of members.'
};
timeline.push(trial_1);
var block0 = {
type: 'survey-text',
questions: [
{prompt: '<p>Congrats! You completed the experiment! Thank you for participating.</p>'+
'<p>If you noticed anything about the experiment (e.g. the strategies that you used to complete the task or the problems you had, what was easy/difficult, etc.), feel free to write it here .</p>', placeholder: 'Experiment is very interesting..', rows:10, columns: 50}
]
};
timeline.push(block0);
jsPsych.init({
timeline: timeline,
}); |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @dusannikolic92, You'll need to modify the plugin to do this. I have a vague memory of someone else building a plugin to do this kind of thing. This paper is what I was able to find through a search. It looks like it might be a good starting point. Edit: Looks like @pwdonh is actively developing tools for this at https://github.com/pwdonh/audio_tokens. Looks very cool! |
Beta Was this translation helpful? Give feedback.
Hi @dusannikolic92,
You'll need to modify the plugin to do this. I have a vague memory of someone else building a plugin to do this kind of thing. This paper is what I was able to find through a search. It looks like it might be a good starting point.
Edit: Looks like @pwdonh is actively developing tools for this at https://github.com/pwdonh/audio_tokens. Looks very cool!