Sound files in loopnot playing in online experiment

Hi PsychoPy community,

I’m having trouble getting sound files to work in an online experiment, while everything works perfectly in the local version. Here are the details:

  • PsychoPy version: 2024.2.4
  • Issue:
    • Local experiment runs flawlessly (sound files play normally in the loop).
      • The same intro_trials loop loads images successfully, but no sound plays from sound_2.
  • Setup:
    • All files (sound/.ogg, images, and .jspsycho files) are in the same folder.

I’ve been stuck on this for a while and would sincerely appreciate any suggestions or insights. Thank you in advance for your time and expertise — even a small hint might help me solve this!


Ogg files don’t work online. Either use MP3 or wav. MP3 is generally better but wav works locally as well. I use a both code component to set the sound extension differently for local and online.