4 Replies
Hi @MaxEsin. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
To implement voice chat for the WebGL platform using Normcore, follow these steps:
1. Import Normcore and Set Up WebGL Build
Import the Normcore package into your Unity project. Normcore WebGL support allows you to compile your project for WebGL with no modifications to the source project. Open your NormcoreAppSettings asset, ensure you have a valid app key, and set the matcher URL to a cluster that supports WebGL preview audio channels. Then, export a WebGL build and run it in your browser. Multiplayer and voice chat will work between WebGL and other supported platforms as well Normcore WebGL. 2. Voice Chat Component
Use the RealtimeAvatarVoice component on your avatar or player prefab. This component handles sending and receiving voice data. On WebGL, it works similarly to native platforms, but with one key difference:
- On WebGL, voice chat audio is played directly through the browser, not through Unity’s audio engine, because Unity’s FMOD audio engine does not run on the web. This means spatialization and some advanced audio features are not available on WebGL Normcore WebGL. 3. Microphone Permissions
Browsers require explicit permission to access the microphone. Make sure your site is served over HTTPS and that you handle browser prompts for microphone access. If you’re running locally, use a local web server rather than opening the HTML file directly Normcore WebGL. 4. Limitations
- Voice chat spatialization does not work on WebGL, as all audio is played through the browser’s audio system, not Unity’s Normcore WebGL. - All other core voice chat features (sending/receiving audio, muting, etc.) are supported. Summary:
Add the RealtimeAvatarVoice component to your avatar prefab, ensure your project is set up for WebGL with a valid app key and matcher URL, and build for WebGL. Voice chat will work out of the box, but spatialization and Unity audio effects are not available on the web. For more details, see the Normcore WebGL documentation. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
Import the Normcore package into your Unity project. Normcore WebGL support allows you to compile your project for WebGL with no modifications to the source project. Open your NormcoreAppSettings asset, ensure you have a valid app key, and set the matcher URL to a cluster that supports WebGL preview audio channels. Then, export a WebGL build and run it in your browser. Multiplayer and voice chat will work between WebGL and other supported platforms as well Normcore WebGL. 2. Voice Chat Component
Use the RealtimeAvatarVoice component on your avatar or player prefab. This component handles sending and receiving voice data. On WebGL, it works similarly to native platforms, but with one key difference:
- On WebGL, voice chat audio is played directly through the browser, not through Unity’s audio engine, because Unity’s FMOD audio engine does not run on the web. This means spatialization and some advanced audio features are not available on WebGL Normcore WebGL. 3. Microphone Permissions
Browsers require explicit permission to access the microphone. Make sure your site is served over HTTPS and that you handle browser prompts for microphone access. If you’re running locally, use a local web server rather than opening the HTML file directly Normcore WebGL. 4. Limitations
- Voice chat spatialization does not work on WebGL, as all audio is played through the browser’s audio system, not Unity’s Normcore WebGL. - All other core voice chat features (sending/receiving audio, muting, etc.) are supported. Summary:
Add the RealtimeAvatarVoice component to your avatar prefab, ensure your project is set up for WebGL with a valid app key and matcher URL, and build for WebGL. Voice chat will work out of the box, but spatialization and Unity audio effects are not available on the web. For more details, see the Normcore WebGL documentation. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
<@328247194794852352> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
Voice only works on the WebGL alpha unfortunately.
We’ll be releasing it publicly down the road, but no launch date at the moment. it’s blocked on a few other releases going out
Thank you for the quick answer!
Can you share the alpha implementation? I'm asking for it because I played the demo game on your official site and it's looking pretty good. We'll be releasing the WebGL port at the end of September. I hope to get Voice chat working by this date