aws-samples / amazon-sumerian-hosts

Amazon Sumerian Hosts (Hosts) is an experimental open source project that aims to make it easy to create interactive animated 3D characters for Babylon.js, three.js, and other web 3D frameworks. It leverages AWS services including Amazon Polly (text-to-speech) and Amazon Lex (chatbot).
MIT No Attribution
175 stars 80 forks source link

Audio not working with BabylonJS Demo on iOS devices #174

Open GeneUNCG opened 12 months ago

GeneUNCG commented 12 months ago

With the latest version of this repository, text-to-speech audio does not work on iOS devices. A mute button appears at the top left, and even when clicked on, the audio still does not play. This issue started happening in the recent months. Just a theory, but perhaps the issue is related to version 4 of BabylonJS, and it was fixed in more recent updates (e.g. version 5 or 6). Please see the screenshot attached.

image

trusktr commented 4 months ago

On iOS, the click event has to happen before any Web Audio is played. If this does not happen, Babylon audio is permanently broken the rest of the session until a user restarts the tab (ouch!).

https://forum.babylonjs.com/t/remove-unmute-button/27577