AGB3113
AGB31133mo ago

How can you use voice chat in the Unity project

I don't get it
Solution:
#4 is what you want
Jump to solution
3 Replies
kapa.ai
kapa.ai3mo ago
Hi @AGB3113. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- To use voice chat in a Unity project with Normcore, you need to follow these steps: 1. Check your default microphone device settings. If you're on a platform that requires microphone permissions (Mac, iOS, or Android), make sure your microphone permissions and Microphone Usage Description is set correctly in Unity. Normcore will print an error message to console if something fails. It's recommended to check your player logs for more information if audio is not working. source (https://normcore.io/documentation/realtime/common-questions#voice-chat-doesnt-work-why) 2. If you're creating a multiplayer XR app, you can add avatars and voice chat by creating a blank Unity project and configuring it for XR under XR Plug-in Management. Then, move the camera back to the origin and drag a “Realtime + VR Player" prefab into the scene. Add your App Key to the Realtime component and hit Play. The default VR Player avatar prefab will spawn and Normcore will automatically connect you to the same room and instantiate an avatar for each person. source (https://normcore.io/documentation/guides/xr-avatars-and-voice-chat) 3. To spatialize voice chat, adjust it on the AudioSource. RealtimeAvatarVoice plays audio back using Unity’s audio engine so all of the Unity audio APIs work correctly. At runtime, RealtimeAvatarVoice will create an AudioSource if one is not present, but if you’d like to configure it in the editor, add your own AudioSource component and RealtimeAvatarVoice will detect and use that instance. source (https://normcore.io/documentation/realtime/common-questions#how-do-i-spatialize-voice-chat) 4. If you're creating custom avatars, you can add a RealtimeAvatarVoice component on it for voice chat. source (https://normcore.io/documentation/guides/xr-avatars-and-voice-chat#creating-custom-avatars) 5. For WebGL applications, you can add a RealtimeAvatarVoice component to the root of the prefab. Export a WebGL build and open it in two browser windows. You should be able to hear voice chat between both windows. source (https://normcore.io/documentation/platforms/webgl) Remember, you need a free App Key to use with Normcore. You can get one by registering for a Normal account and creating a new application in the Dashboard. source (https://normcore.io/documentation/essentials/getting-started#creating-a-normcore-application) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai3mo ago
<@1190681531988058142> kapa.ai is still learning and improving, please let us know how it did by reacting below
Solution
maxweisel
maxweisel3mo ago
#4 is what you want