Member Junction
    Preparing search index...

    Function BuildRealtimeOverridesJson

    • Builds the runtime-override ConfigOverridesJson envelope (the highest-precedence cascade layer) from a per-session model and/or voice choice — the single, surface-agnostic shape every realtime host uses to carry a dev's pick into ResolveEffectiveRealtimeConfig. The native-chat picker produces the same shape client-side (BuildRealtimeConfigOverridesJson in @memberjunction/ng-conversations); the server-bridged hosts (LiveKit, Zoom/Teams) build it here so both funnel into the one override slot.

      Envelope: {"realtime":{"modelPreference":"<id>","voice":{"providers":{"openai":{"voice":"<v>"}}}}}. openai is the realtime provider today; add providers here when others ship realtime voices.

      Parameters

      • OptionalmodelId: string

        The MJ: AI Models Name or ID to prefer, or null/empty for none.

      • Optionalvoice: string

        The provider-native voice id (e.g. echo), or null/empty for none.

      Returns string

      The JSON string, or null when nothing was overridden (keeps the cascade at its lower layers).