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.
The agent's outbound PCM16 audio at modelRate.
modelRate
The realtime model's outbound sample rate (Hz).
The ACS audio-socket sample rate (Hz).
The PCM16 audio at the ACS socket rate.
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.