Member Junction
    Preparing search index...

    The ACS application-hosted-media audio plane for a single call — the bot's per-participant inbound hearing socket and its outbound voice socket, plus the (optionally-absent) raised-hand signal. Production wires this over the ACS calling-bot media SDK; tests inject a fake. Speaks raw PCM16 frames; the T0 transcode happens in RealTeamsBindings via the pure helpers above.

    interface IAcsMediaLike {
        SampleRate: number;
        OnAudioFrame(
            callId: string,
            handler: (frame: AcsInboundAudioFrame) => void,
        ): void;
        OnHandRaise?(
            callId: string,
            handler: (participantId: string, raised: boolean) => void,
        ): void;
        SendAudioFrame(callId: string, pcm: ArrayBuffer): void;
    }

    Implemented by

    Index

    Properties

    SampleRate: number

    The ACS audio-socket sample rate in Hz (e.g. 16000) — used to drive T0 resampling.

    Methods

    • Registers the raised-hand handler, when the platform exposes it. Optional — a tenant/build that does not surface a clean per-participant hand-raise event simply omits this method, and the binding tolerates its absence (never throws). "Latest handler wins" when present.

      Parameters

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

      Returns void

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

      Parameters

      • callId: string
      • pcm: ArrayBuffer

      Returns void