Sound stimuli not working online

Hello everyone!

I am currently creating an experiment where participants press a specific key to initiate a sound stimulus. The experiment was working well in the builder but when I try to run it on Pavlovia I get the following error message:

Does anyone know what this means? All the sound files (.wav) are present in the resources file in the repository so there does not seem to a problem with syncing.

What does your sound component look like.

I’d recommend you use .mp3 online. See my crib sheet for more details.

Best wishes,

Wakefield

Thank you for your response! I have changed the files to mp3 format but am still getting the same error message. I have created a relative path to the files in the builder, but when I look at the .js version it does not seem to be present:

Pr_sound_R = new sound.Sound({
win: psychoJS.window,
value: ‘A’,
secs: -1.0,
});
Pr_sound_R.setVolume(1.0);

Could this be the problem?

What does your sound component look like in Builder?

In my crib sheet I advise against trying to create sound components in code or using alphabetical notes.

image

To start with I would test it by removing the duration from the sound component.

Also try using all rows. It might be that [0,3,5] will work or you could rearrange your spreadsheet and then ask for 0:3

That worked! Thank you so much!