# Stream (v1, frozen)

> First-generation stream. One p_eot score per step.

Source: https://docs.joinin.ai/baton/v2/reference/v1-stream/ · Last updated 21 Oct 2026

WSS`/v1/stream`

Frozen. The first frame is JSON with `api_key`; then send **raw** PCM16 frames with no leading byte. Each step returns `{timestamp, p_eot, words}`. Rejections: 1008 invalid key or non-JSON start, 1011 no keys configured, 1013 rate limited or not ready.

## Session

Open, configure and close the session.

### `start`you send

| Field | Type | Description |
|---|---|---|
| `api_key` *required* | string |  |
| `messages` | array of object |  |
| `inference_interval` | number | Scoring step in seconds. Default `0.1`. |
| `language` | string | Language code, e.g. "en". |

## Audio

16 kHz mono PCM16 in binary frames.

### `audio`you send

Binary frame. Raw PCM16LE mono 16 kHz with no leading byte.

## Speech and turns

When people speak, pause and finish, what they answered, and what may have been missed.

### `score`you receive

| Field | Type | Description |
|---|---|---|
| `timestamp` | number | Audio time in seconds. |
| `p_eot` | number | Probability, from 0 to 1, that the speaker has finished their turn at this step. |
| `words` | string | The transcript so far. |
