Function: decodeSpeechPcmFrame()
@kortexya/reasoninglayer / decodeSpeechPcmFrame
Function: decodeSpeechPcmFrame()
Section titled “Function: decodeSpeechPcmFrame()”decodeSpeechPcmFrame(
bytes):SpeechPcmFrame
Defined in: src/speech-media.ts:19
Decode one complete WebSocket PCM packet without assuming host endianness or an aligned typed-array byte offset.
Call only after negotiating protocolVersion 2. Playback must additionally fence epochs and check sequence/sample offsets against audio_start.
Parameters
Section titled “Parameters”ArrayBuffer | Uint8Array<ArrayBufferLike>