Audios don't work on Pavlovia

Hi!

I’m running an online experiment on Pavlovia and running into an audio playback issue. The first audio file always plays correctly, but every subsequent one fails with an “unknown resource” error — even though all the files are in the same folder.

What I’ve tried so far, without success:

  • Converting the audio files to both ogg and mp3 formats
  • Adding a resource manager to preload the files

Since only the first file loads, I suspect it’s related to how resources are being registered or preloaded rather than the files themselves, but I’m not sure. Any help figuring out what’s going wrong would be much appreciated!

Here’s our GitHub repo: Sign in · GitLab

.ogg files won’t work online.

Please check the developer console for specific error messages – perhaps related to the resources.

Hi @wakecarte,

Thank you so much for your help! I managed to fix the “unknown resource” error, but I’m still experiencing the same issue with the second and subsequent audio files. The first audio in both the practice and test blocks plays correctly, but the remaining audio files do not play.

Could you please take a look at the experiment to see what might be causing the problem?

Thank you again for your time and help!

I don’t have access to your experiment. Try setting the sound start time to 0.5 second or set it to preload in a static component.

Thank you so much! I changed the start time and it worked!!