Member Junction
    Preparing search index...

    The server-owned per-call audio pump the ACS application-hosted-media plane runs on — the analogue of ITwilioMediaPump for telephony. The long-lived ACS audio socket is a server concern (it spans the whole call and the native-media / ws dependency lives in MJServer), so this seam lets the in-package binding push the bot's outbound PCM and register for inbound per-participant PCM without ever owning the socket. Production wires it over the server's per-call ACS media registry; tests inject a fake.

    interface IAcsMediaPump {
        SampleRate: number;
        OnFrame(
            callId: string,
            handler: (frame: AcsInboundAudioFrame) => void,
        ): void;
        OnHandRaise?(
            callId: string,
            handler: (participantId: string, raised: boolean) => void,
        ): void;
        Send(callId: string, pcm: ArrayBuffer): void;
    }
    Index

    Properties

    SampleRate: number

    The ACS audio-socket sample rate in Hz (e.g. 16000) — drives T0 resampling in RealTeamsBindings.

    Methods

    • Registers the raised-hand handler for the call when the platform/registry surfaces it. Optional — absence is tolerated by RealTeamsBindings (the handler simply never fires).

      Parameters

      • callId: string
      • handler: (participantId: string, raised: boolean) => void

      Returns void

    • Sends one outbound PCM16 frame on the bot's outbound audio socket for the call (the agent's voice).

      Parameters

      • callId: string
      • pcm: ArrayBuffer

      Returns void