From 0eaa19be4307dd8df8d19e650d9b3f17d0c77b4c Mon Sep 17 00:00:00 2001 From: Kathryn Schuler Date: Mon, 2 Dec 2024 13:10:59 -0500 Subject: [PATCH] update --- params.js | 132 +++++++++++++++++++++++++++--------------------------- task.html | 23 +++++++--- 2 files changed, 84 insertions(+), 71 deletions(-) diff --git a/params.js b/params.js index d7ebbb6..1d8ac4b 100644 --- a/params.js +++ b/params.js @@ -198,73 +198,73 @@ var PARAMS = { }, test: { list1: [ - { sound1: "daropi", sound2: "pabiku", category: "part-word" }, - { sound1: "budopa", sound2: "pigola", category: "word" }, - { sound1: "daropi", sound2: "tibudo", category: "part-word" }, - { sound1: "pigola", sound2: "tudaro", category: "word" }, - { sound1: "daropi", sound2: "tibudo", category: "part-word" }, - { sound1: "golatu", sound2: "tibudo", category: "part-word" }, - { sound1: "pigola", sound2: "bikuti", category: "word" }, - { sound1: "tudaro", sound2: "budopa", category: "word" }, - { sound1: "tibudo", sound2: "golatu", category: "part-word" }, - { sound1: "bikuti", sound2: "budopa", category: "word" }, - { sound1: "pabiku", sound2: "golatu", category: "part-word" }, - { sound1: "tudaro", sound2: "pigola", category: "word" }, - { sound1: "bikuti", sound2: "tudaro", category: "word" }, - { sound1: "golatu", sound2: "daropi", category: "part-word" }, - { sound1: "budopa", sound2: "bikuti", category: "word" }, - { sound1: "pabiku", sound2: "daropi", category: "part-word" }, - { sound1: "budopa", sound2: "pigola", category: "word" }, - { sound1: "golatu", sound2: "daropi", category: "part-word" }, - { sound1: "tibudo", sound2: "pabiku", category: "part-word" }, - { sound1: "bikuti", sound2: "tudaro", category: "word" }, - { sound1: "pigola", sound2: "bikuti", category: "word" }, - { sound1: "daropi", sound2: "tibudo", category: "part-word" }, - { sound1: "pabiku", sound2: "golatu", category: "part-word" }, - { sound1: "bikuti", sound2: "budopa", category: "word" }, - { sound1: "golatu", sound2: "pabiku", category: "part-word" }, - { sound1: "tibudo", sound2: "golatu", category: "part-word" }, - { sound1: "pigola", sound2: "tudaro", category: "word" }, - { sound1: "budopa", sound2: "bikuti", category: "word" }, - { sound1: "pabiku", sound2: "daropi", category: "part-word" }, - { sound1: "tudaro", sound2: "budopa", category: "word" }, - { sound1: "tibudo", sound2: "pabiku", category: "part-word" }, - { sound1: "tudaro", sound2: "pigola", category: "word" } - ], + { sound1: "pigola", sound2: "tudaro", sound3: "budopa", category: "word" }, + { sound1: "golatu", sound2: "tibudo", sound3: "daropi", category: "part-word" }, + { sound1: "tudaro", sound2: "bikuti", sound3: "pigola", category: "word" }, + { sound1: "daropi", sound2: "pabiku", sound3: "golatu", category: "part-word" }, + { sound1: "bikuti", sound2: "budopa", sound3: "tudaro", category: "word" }, + { sound1: "tibudo", sound2: "daropi", sound3: "pabiku", category: "part-word" }, + { sound1: "budopa", sound2: "bikuti", sound3: "pigola", category: "word" }, + { sound1: "tibudo", sound2: "golatu", sound3: "pabiku", category: "part-word" }, + { sound1: "tudaro", sound2: "pigola", sound3: "bikuti", category: "word" }, + { sound1: "golatu", sound2: "pabiku", sound3: "daropi", category: "part-word" }, + { sound1: "budopa", sound2: "bikuti", sound3: "pigola", category: "word" }, + { sound1: "pabiku", sound2: "golatu", sound3: "tibudo", category: "part-word" }, + { sound1: "pigola", sound2: "budopa", sound3: "tudaro", category: "word" }, + { sound1: "daropi", sound2: "tibudo", sound3: "golatu", category: "part-word" }, + { sound1: "bikuti", sound2: "pigola", sound3: "budopa", category: "word" }, + { sound1: "tibudo", sound2: "daropi", sound3: "pabiku", category: "part-word" }, + { sound1: "pigola", sound2: "budopa", sound3: "tudaro", category: "word" }, + { sound1: "golatu", sound2: "tibudo", sound3: "daropi", category: "part-word" }, + { sound1: "tudaro", sound2: "budopa", sound3: "bikuti", category: "word" }, + { sound1: "pabiku", sound2: "golatu", sound3: "tibudo", category: "part-word" }, + { sound1: "bikuti", sound2: "tudaro", sound3: "pigola", category: "word" }, + { sound1: "daropi", sound2: "pabiku", sound3: "golatu", category: "part-word" }, + { sound1: "budopa", sound2: "pigola", sound3: "bikuti", category: "word" }, + { sound1: "tibudo", sound2: "golatu", sound3: "pabiku", category: "part-word" }, + { sound1: "pigola", sound2: "tudaro", sound3: "bikuti", category: "word" }, + { sound1: "golatu", sound2: "pabiku", sound3: "daropi", category: "part-word" }, + { sound1: "budopa", sound2: "bikuti", sound3: "tudaro", category: "word" }, + { sound1: "pabiku", sound2: "daropi", sound3: "tibudo", category: "part-word" }, + { sound1: "daropi", sound2: "tibudo", sound3: "golatu", category: "part-word" }, + { sound1: "pabiku", sound2: "daropi", sound3: "tibudo", category: "part-word" }, + { sound1: "bikuti", sound2: "tudaro", sound3: "budopa", category: "word" }, + { sound1: "tudaro", sound2: "pigola", sound3: "budopa", category: "word" } + ], list2: [ - { sound1: "budopa", sound2: "pigola", category: "word" }, - { sound1: "bikuti", sound2: "tudaro", category: "word" }, - { sound1: "golatu", sound2: "daropi", category: "part-word" }, - { sound1: "daropi", sound2: "pabiku", category: "part-word" }, - { sound1: "pigola", sound2: "tudaro", category: "word" }, - { sound1: "pigola", sound2: "bikuti", category: "word" }, - { sound1: "golatu", sound2: "tibudo", category: "part-word" }, - { sound1: "pigola", sound2: "tudaro", category: "word" }, - { sound1: "tibudo", sound2: "pabiku", category: "part-word" }, - { sound1: "tudaro", sound2: "pigola", category: "word" }, - { sound1: "daropi", sound2: "tibudo", category: "part-word" }, - { sound1: "tudaro", sound2: "budopa", category: "word" }, - { sound1: "pabiku", sound2: "golatu", category: "part-word" }, - { sound1: "tudaro", sound2: "budopa", category: "word" }, - { sound1: "golatu", sound2: "pabiku", category: "part-word" }, - { sound1: "pabiku", sound2: "golatu", category: "part-word" }, - { sound1: "bikuti", sound2: "tudaro", category: "word" }, - { sound1: "bikuti", sound2: "budopa", category: "word" }, - { sound1: "tibudo", sound2: "golatu", category: "part-word" }, - { sound1: "golatu", sound2: "daropi", category: "part-word" }, - { sound1: "bikuti", sound2: "budopa", category: "word" }, - { sound1: "tibudo", sound2: "golatu", category: "part-word" }, - { sound1: "daropi", sound2: "tibudo", category: "part-word" }, - { sound1: "pigola", sound2: "bikuti", category: "word" }, - { sound1: "pabiku", sound2: "daropi", category: "part-word" }, - { sound1: "tibudo", sound2: "pabiku", category: "part-word" }, - { sound1: "tudaro", sound2: "pigola", category: "word" }, - { sound1: "pabiku", sound2: "daropi", category: "part-word" }, - { sound1: "budopa", sound2: "bikuti", category: "word" }, - { sound1: "daropi", sound2: "tibudo", category: "part-word" }, - { sound1: "budopa", sound2: "pigola", category: "word" }, - { sound1: "budopa", sound2: "bikuti", category: "word" } - ] + { sound1: "budopa", sound2: "pigola", sound3: "bikuti", category: "word" }, + { sound1: "tudaro", sound2: "bikuti", sound3: "pigola", category: "word" }, + { sound1: "golatu", sound2: "pabiku", sound3: "daropi", category: "part-word" }, + { sound1: "budopa", sound2: "bikuti", sound3: "pigola", category: "word" }, + { sound1: "daropi", sound2: "pabiku", sound3: "golatu", category: "part-word" }, + { sound1: "tibudo", sound2: "daropi", sound3: "pabiku", category: "part-word" }, + { sound1: "tudaro", sound2: "pigola", sound3: "bikuti", category: "word" }, + { sound1: "pigola", sound2: "tudaro", sound3: "budopa", category: "word" }, + { sound1: "daropi", sound2: "tibudo", sound3: "golatu", category: "part-word" }, + { sound1: "bikuti", sound2: "pigola", sound3: "budopa", category: "word" }, + { sound1: "daropi", sound2: "pabiku", sound3: "golatu", category: "part-word" }, + { sound1: "pigola", sound2: "tudaro", sound3: "bikuti", category: "word" }, + { sound1: "pabiku", sound2: "golatu", sound3: "tibudo", category: "part-word" }, + { sound1: "bikuti", sound2: "budopa", sound3: "tudaro", category: "word" }, + { sound1: "tibudo", sound2: "daropi", sound3: "pabiku", category: "part-word" }, + { sound1: "golatu", sound2: "pabiku", sound3: "daropi", category: "part-word" }, + { sound1: "tudaro", sound2: "pigola", sound3: "budopa", category: "word" }, + { sound1: "pigola", sound2: "budopa", sound3: "tudaro", category: "word" }, + { sound1: "golatu", sound2: "tibudo", sound3: "daropi", category: "part-word" }, + { sound1: "tudaro", sound2: "budopa", sound3: "bikuti", category: "word" }, + { sound1: "pabiku", sound2: "daropi", sound3: "tibudo", category: "part-word" }, + { sound1: "daropi", sound2: "tibudo", sound3: "golatu", category: "part-word" }, + { sound1: "tibudo", sound2: "golatu", sound3: "pabiku", category: "part-word" }, + { sound1: "budopa", sound2: "bikuti", sound3: "pigola", category: "word" }, + { sound1: "pabiku", sound2: "daropi", sound3: "tibudo", category: "part-word" }, + { sound1: "bikuti", sound2: "tudaro", sound3: "pigola", category: "word" }, + { sound1: "tibudo", sound2: "golatu", sound3: "pabiku", category: "part-word" }, + { sound1: "pigola", sound2: "budopa", sound3: "tudaro", category: "word" }, + { sound1: "pabiku", sound2: "golatu", sound3: "tibudo", category: "part-word" }, + { sound1: "budopa", sound2: "bikuti", sound3: "tudaro", category: "word" }, + { sound1: "bikuti", sound2: "tudaro", sound3: "budopa", category: "word" }, + { sound1: "golatu", sound2: "tibudo", sound3: "daropi", category: "part-word" } + ] } } } diff --git a/task.html b/task.html index 86fd05c..ed2b622 100644 --- a/task.html +++ b/task.html @@ -136,6 +136,7 @@ if (typeof reader.result === 'string' && reader.result.startsWith('data:')) { base64Data = reader.result.split(',')[1]; // Extract the base64 string const recording = childlanglabClient.uploadRecording(base64Data, trial_index ) + console.log(recording) done(recording) } else { console.error('Unexpected FileReader result format:', reader.result); @@ -389,7 +390,19 @@ choices: "NO_KEYS", trial_ends_after_audio: true, post_trial_gap: 0 - }, + }, + { + type: jsPsychAudioKeyboardResponse, + stimulus: function(){ + let sound = `sounds/${jsPsych.timelineVariable('sound3')}-resampled.wav` + return sound + }, + prompt: '

', + response_allowed_while_playing: false, + choices: "NO_KEYS", + trial_ends_after_audio: true, + post_trial_gap: 0 + }, { type: jsPsychHtmlVideoResponse, stimulus: '', @@ -544,11 +557,11 @@

Exit survey

var timeline = [ consent, - browser_check, - fullscreen_check, + //browser_check, + //fullscreen_check, preload, - get_instructions(CONDITION_PARAMS.instructions.exposure), - exposure, + // get_instructions(CONDITION_PARAMS.instructions.exposure), + // exposure, get_instructions(CONDITION_PARAMS.instructions.test), init_camera, // this is a conditional function that only runs for SICR init_microphone,