This is browser restriction. If the user hasn’t interacted with your page you’re not allowed to start an audio stream. You have to wait until first interaction / or trigger the audio playback until a button press or something.
— Should be fine
— What's the error now?
— Same error
— You have documentation link for this?
— This is not the same error
— Some other code is testing your code, and failing