Can I send a local player voice to multiple rooms by instantiating multiple avatar voices ?

This means a player will connect to multiple rooms and each avatar voice is instantiated in a separate room.
7 Replies
kapa.ai
kapa.ai2w ago
Hi @Huynh Đình Trí. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the available documentation, Normcore does support connecting to multiple rooms at the same time by creating additional Realtime instances—each managing its own connection to a separate room. This allows you to split large spaces or group traffic as needed, and each room will have its own set of avatars and voice chat streams associated with it Essentials Common Questions. The RealtimeAvatarVoice component works on any realtime prefab as long as the RealtimeView component has an owner. When instantiated, it uses the ownership of the RealtimeView to determine if it should send or receive audio for that prefab. If you instantiate an avatar (with RealtimeAvatarVoice) in each room, and your player is connected to multiple rooms, each avatar should handle voice chat for its respective room Voice Chat Reference. However, the documentation does not explicitly state whether you can send the same local microphone stream to multiple rooms simultaneously by simply instantiating multiple RealtimeAvatarVoice components. There may be technical limitations or additional considerations (such as microphone access conflicts or audio routing) that are not covered in the documentation. In summary:
- Normcore supports connecting to multiple rooms at once, and you can instantiate avatars (with voice) in each room. - The documentation does not explicitly confirm or deny whether a single local microphone stream can be sent to multiple rooms by instantiating multiple RealtimeAvatarVoice components. - You may need to test this in your project or consult the Normcore team for confirmation if you require this specific functionality. If you need more details or run into issues, the documentation suggests reaching out on their Discord for advanced use cases Essentials Common Questions. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai2w ago
<@419665126329810946> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
Huynh Đình Trí
"Can i send the same local microphone stream to multiple rooms simultaneously by simply instantiating multiple RealtimeAvatarVoice components ?" This is exactly the question i would like to know the answer. Please help me.
Mechabit
Mechabit2w ago
you can connect to multiple rooms at once with multiple realtimes you can then instantaite a view with a voice component for each realtime
Huynh Đình Trí
Yes, i understand. But will the my local microphone stream be sent to multiple realtimes (rooms) without issues ?
maxweisel
maxweisel2w ago
yes it will work but you may need to patch realtime avatar voice to share a microphone device object because some platforms will render silence once the microphone is bound to by one microphone device object
Huynh Đình Trí
Understood, thank you so much, Max. 👍

Did you find this page helpful?