Skip to content

How to present an audio (last for 1s) at a random point of time during a text presentation?? #768

Answered by jodeleeuw
Jianpsy asked this question in Q&A
Discussion options

You must be logged in to vote

Two options that I can think of:

  1. You could modify the audio-keyboard-response plugin to add a parameter that delays the start of the audio. If you know how to do this in JavaScript it will be a fairly straightforward modification to the plugin. Feel free to post here for help with this if you go that route.

  2. You could break the trial into two parts. You can use an html-keyboard-response trial to display the text by itself, using trial_duration to control the length of the random interval. If you set post_trial_gap: 0 then the transition should be seamless from the perspective of the subject.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Jianpsy
Comment options

Answer selected by Jianpsy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants