Replies: 1 comment 6 replies
-
Your two scripts have different audio paths, with |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! :)
I am writing a script for a behavioural cognitive science experiment, presenting chunks of word pairs auditorially and asking users to give keyboard feedbacks about the most similar and most different pairs between the ones inside each chunk.
I am using JsPsych 7.3.4 version.
I am trying to read a csv file, which has this format:
The table has 12769 rows in total, and each subject (corresponding to a subj_ID in the Participant_ID column) corresponds to 399 rows.
After reading (and parsing) the file, I need to present auditorially 399 chunks of 4 words pairs to each subject. Then, ask the user/subject to give 2 keyboard responses after each chunk of 4 pairs. Each chunk is corresponding to one row in the csv file, where the 'options' columns contain the items that constitute the words which should be presented. Each word is corresponding to an audio file inside the project folder using a mapping object.
Everything works in the browser console (the arrays objects are outputted as they should) but the audio are not played. Can you spot which is the issue?
I've put extra console.log to try to debug. And an example_two trial at the end to check for paths validity and timeline work-out.
### ### ### ### ### ### ### ### ###
`
<title>My experiment</title> <script src="js/dist/jspsych.js"></script> <script src="js/dist/plugin-html-keyboard-response.js"></script> <script src="js/dist/plugin-audio-keyboard-response.js"></script> <script src="js/dist/plugin-html-button-response.js"></script> <script src="js/dist/plugin-call-function.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/5.3.0/papaparse.min.js"></script> <script>Beta Was this translation helpful? Give feedback.
All reactions