Skip to content

Audio frame (binary)

Raw PCM (Pulse Code Modulation) audio bytes transmitted as a binary WebSocket frame.

Format: 16-bit signed linear PCM, mono (single channel), little-endian byte order.

Frame size: Audio should be sent in 20ms chunks. At 8 kHz this is 320 bytes per frame (160 samples × 2 bytes); at 16 kHz it is 640 bytes per frame. Larger chunks are accepted but increase latency.

The sample rate is determined by the value specified in the SVAML connectStream command. Raw PCM audio bytes sent as a WebSocket binary message

We'd love to hear from you!
Rate this content: