Skip to content
Discussion options

You must be logged in to vote

Hi @MatthieuFra! I'm not an expert in jsPsych but I do this in one of my experiments. If you find a free audio file for your button (e.g. through something like the Creator Assets website/youtube, which makes Copyright free sound effects), then you can load it into your project as I've done below, and you can add it to the button_html (see where I did "onclick=bloop.play()"). (As a note, for mine I did wind up trimming the button noise from an audio file of different ones using Audacity.)

        /* Create variable(s) containing button audio */
        var bloop = new Audio("audio/bloop.mp3"); // for navigation buttons
        
        /* Displays a blank instructions page in order to mov…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MatthieuFra
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