Member Junction
    Preparing search index...

    A real NativeRoomClient over @livekit/rtc-node. One instance per room session. Constructed by CreateLiveKitRtcNodeModule's createRoomClient, driven by LiveKitNativeMeetingSdk.

    Implements

    Index

    Constructors

    • Parameters

      • outboundRate: number

        Outbound PCM rate (Hz) — the AudioSource rate (model output rate).

      • inboundRate: number

        Inbound PCM rate (Hz) — each AudioStream's resample target (model input rate).

      • channels: number

        Channel count.

      • loadRtc: RtcNodeLoader

        The @livekit/rtc-node loader.

      Returns LiveKitRtcNodeRoomClient

    Methods

    • Flushes all pending outbound audio — both our pre-capture outboundQueue and the audio already buffered inside the LiveKit AudioSource. Called on barge-in (the user interrupts the agent): without it, the agent keeps talking from buffered audio after the model has stopped generating, so interruption appears not to work. Never throws.

      Returns void

    • Enqueues one PCM frame for the bot's audio track (the agent's voice). The sync seam contract is preserved (never throws), but the frame is fed through drainOutbound so captures are serialized — see outboundQueue for why concurrent captures corrupt playout pacing.

      Parameters

      • pcm: ArrayBuffer

      Returns void

    • Video publish is not part of the voice MVP — LiveKit supports it, but it needs a VideoSource + frame-format negotiation beyond this wrapper's scope. One-time-warned no-op (never throws).

      Parameters

      • _frame: ArrayBuffer

      Returns void