1-- I want to add javascript text to speech on webxr content in both ordinary 2D mode and 3D immersive mode.
With a lot of different tries it does not seem to work when the same page that works in 2D on Chrome is placed in 3D immersive mode on the Quest 2 Browser.
2-- One example is
which works in 2D & 3D XR (note 9/8/24 – it did work when I wrote this, but checking it again today it was not the same. “CreateSphere” had a line struck through it.)
works in 2D, but does not even load properly in 3D.
This also raises the issue, what is the best way to find “hidden” error messages when there is an XR command in the scene and using (or not using) the playground for testing:
The error message did not show up until I did the test in a Playground without any XR.
They seem to say that SpeechSynthesisUtterance is not supported at all by the browser. But you can probably use WebAudio with an API such as Eleven Labs to bypass that problem