I am working on a project where I want to play sound on iOS in following way
Click Sound Button
Send API Call
Play Result in audio form
Only Playcanvas native sound component is playing sound, audio, and Windows speech synthesis are not playing any sound. If someone can help in how playcanvas is still managing to play sound, and what I can do to achieve this.
I’m not fully sure on what the issue may be, from what I know the browser needs to play the sound as a response to an input event handler. I assume it’s ok if the response is first a Rest call and afterwards the audio play() method (but iOS can be strange).
Here is the Sound Component source code if it helps: