Help Creating Sound in Online Experiment

URL of experiment: Sign in · GitLab

Hello, I’ve been working on an experiment for a class in which a sound is played during a word list and when they recall the word list. I am able to get the sound to play continuously in the builder (using custom code, I’ve included it below) but there is no sound online. The program runs online with no error code, but no sound plays. Anyone know how to fix this? Thanks!

I have a custom code component in each loop:
In the being experiment tab:
Python-

background_sound = sound.Sound(2000, secs = 30)

Javascript (all of my javascript is autogenerated)-

background_sound = new sound.Sound(2000, {"secs": 30});

In the begin routine tab:
Python-

if Words_1.thisN >= 0:
    background_sound.play()

Javascript-

if ((Words_1.thisN >= 0)) {
    background_sound.play();
}

And the end routine tab:
Python-

if Words_1.thisN == 14:
    background_sound.stop()

Javascript-

if ((Words_1.thisN === 14)) {
    background_sound.stop();
}

I always create sounds online using a Builder component. Once created .play() and .stop() can be used in code. I sometimes create them with zero volume and then set the volume to 1 before first real use, but there’s a bug with tones (as opposed to files) online such that they can still be heard at zero volume.