Mischa
Mischa2d ago

room.datastoreFrameDuration effect on voice chat

What effect does room.datastoreFrameDuration have on a room that only processes voice chat?
3 Replies
kapa.ai
kapa.ai2d ago
Hi @Mischa. 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 knowledge sources, the room.datastoreFrameDuration property controls how frequently datastore updates (i.e., state synchronization for RealtimeModel objects) are serialized and sent to the server. The default is 1.0/20.0 (20 Hz), and lowering this value increases update frequency and bandwidth usage. However, this property specifically affects the synchronization of application state via the datastore, not media streams like voice chat. Voice chat in Normcore is handled separately through dedicated audio streams, using the Opus codec for compression and dynamic buffering for low-latency, high-quality audio. The documentation does not indicate that room.datastoreFrameDuration has any effect on the transmission or quality of voice chat. Audio streams are managed independently of the datastore update rate, with their own mechanisms for compression, buffering, and network adaptation to ensure real-time performance regardless of datastore settings Why Normcore? High Quality, Low Latency, Audio & Video. In summary:
room.datastoreFrameDuration does not affect voice chat in a room; it only impacts how often datastore (state) updates are sent. Voice chat uses a separate, optimized pipeline. If you need further details on audio stream configuration, let me know! ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai2d ago
<@847936237003604048> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
maxweisel
maxweiselthis hour
@Mischa The only effect it will have is the latency for setting up the stream initially. The only data that's stored in the datastore for voice chat is the clientID and streamID. audio data doesn't pass through the datastore and is always relayed immediately.

Did you find this page helpful?