How to change sound dynamically in PsychoJS?

Description of the problem: Ok I have a SoundComponent in my Builder Experiment and want to change which sounds get played through a code component.(reason being that one out of 5 sound files should be randomly played for the user)

Now I have no Idea how to accomplish this in PsychoJS since the setSound function doesn’t seem to work and neither does putting a $audioString in the Sound field and then assigning it my “audio/file.mp3” string.

Hello @huppfi,
many months later I am having the same problem. Were you ever able to find a solution to the problem?