Using Meta Quest 2 microphone inside of WebXR game?

It’s my first time posting here and I am a big fan of babylon.js after studying it the past few weeks. Anyways, does anyone know if it’s possible to use the Meta Quest 2 microphone inside of multiplayer WebXR VR games? If not, what is the recommended way that players can communicate while they have the headset on?

Thanks

Welcome! I have not tried this myself yet but doing some quick digging around, you definitely need to explicitly ask for permissions to access it and plenty talk about doing with WebXR. Perhaps @RaananW will know more :slight_smile:

TBH I haven’t tested it myself, but we know it is possible because metaverse application using babylon.js are using the microphone when the users are in immersive mode. As everything runs in the browser you can use your microphone the same way you would use it when not in XR - Getting browser microphone permission - Web APIs | MDN

1 Like

Yes, it is possible to use the Meta Quest 2 microphone in multiplayer WebXR VR games. The mic is designed for immersive gaming experiences, and it supports realistic audio communication between players. With the microphone, players can chat in real-time and have a more engaging VR experience.

1 Like

Adding on top of this wonderful answer - Any Web API that works in the browser will probably work in WebXR. if you have access to the microphone outside of the immersive session, you will have it in the immersive session as well. The environment is the same. The rendering process is different.