Skip to content
Discussion options

You must be logged in to vote

Hi @ZifengLIU143,

In your audio trial, there is no duration set on the length of the trial, so the trial lasts indefinitely because no keyboard responses are allowed. If you want the trial to end after the audio finishes playing, you can use the trial_ends_after_audio: true parameter.

var test = {
  type:jsPsychAudioKeyboardResponse,
  stimulus: function(){
    return jsPsych.timelineVariable("pathFile")},
  choices: "NO_KEYS",
  trial_ends_after_audio: true,
  post_trial_gap: 500
};

Replies: 1 comment 1 reply

Comment options

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

Answer selected by ZifengLIU143
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
Converted from issue

This discussion was converted from issue #2777 on September 16, 2022 16:09.