Member Junction
    Preparing search index...
    • Pure transcode of one outbound PCM16 frame (the agent's voice, at the model rate) to the ACS outbound socket rate via the T0 codec when they differ. Returns a fresh buffer the caller can hand straight to the ACS outbound socket.

      Parameters

      • pcm: ArrayBuffer

        The agent's outbound PCM16 audio at modelRate.

      • modelRate: number

        The realtime model's outbound sample rate (Hz).

      • acsRate: number

        The ACS audio-socket sample rate (Hz).

      Returns ArrayBuffer

      The PCM16 audio at the ACS socket rate.