Why is react-sound-2 only working on the repl view, not the webpage

Hey there! I have a private repl that uses react-sound-2 but the sound only plays in the repl web view. On the actually webpage, it doesn’t play the song. I could make this private if any of you want to help. Thanks in advance! EDIT: Sometimes it works and other times it doesn’t

Hey, I would like to help. If code is short, you can also include specific part without making repl public.

I could invite you. This was actually for a school project but not using it anymore.