# Query parameters

Every option of a session, set in the query of the WebSocket address.

Add these to the query of the WebSocket address. Only `model_id` is required.

| Parameter | Values | Default | What it does |
|---|---|---|---|
| `model_id` | `vatis_ro_v9_realtime` | required | The real-time model: `GET /v1/models` lists those your workspace can use. Missing, or one not listed: `invalid_parameter`. |
| `token` | a single-use `realtime` token |  | Instead of the `Authorization` header, for a web page ([Tokens for web pages](https://platform.vatis.tech/docs/authentication#tokens-for-web-pages)). |
| `encoding` | `pcm_s16le`, `pcm_f32le`, `mulaw`, `alaw` | `pcm_s16le` | The audio you send, mono, or two channels with `multichannel`: [Audio formats](https://platform.vatis.tech/docs/realtime/sending-audio#audio-formats). |
| `sample_rate` | `pcm_s16le`, `pcm_f32le`: 8000, 16000, 22050, 24000, 44100, 48000; `mulaw`, `alaw`: 8000 | 16000; `mulaw`, `alaw`: 8000 | The audio's sample rate, in Hz. The API converts every rate to 16 kHz. |
| `language_code` | `ro` (also `ron`, `rum`, in any case) | the model's | Must match the model. |
| `commit` | `vad`, `manual`, `turn` | `vad` | What ends a segment: a pause (`vad`), your `commit` message (`manual`), or the end of the speaker's turn (`turn`, Romanian only): [Partial and final text](https://platform.vatis.tech/docs/realtime/partial-and-final-text), [End of turn](https://platform.vatis.tech/docs/realtime/end-of-turn). |
| `vad_silence_s` | 0.2 to 3.0 | 1.5 | With `vad`: the pause, in seconds, that ends a segment. A shorter one gives faster finals, but cuts more of them in the middle of a sentence. With `turn`: the longest pause, after which a segment ends whatever the speaker sounds like. |
| `turn_sensitivity` | 0.0 to 1.0 | 0.5 | Only with `commit=turn`. Higher answers sooner, and cuts more pauses inside a sentence; lower waits until the speaker sounds more clearly finished. |
| `timestamps` | `true`, `false` | `false` | `final` and `partial` messages carry their `words`, with times. |
| `diarize` | `true`, `false` | `false` | Speakers on `final` and `partial` messages and on their words: [Speakers in a session](https://platform.vatis.tech/docs/realtime/speakers-and-channels#speakers-in-a-session). |
| `num_speakers` | 1 to 8 |  | The number of speakers, when you know it. Only with `diarize=true`. |
| `speaker_updates` | `true`, `false` | `false` | Only with `diarize=true`. `true`: a `final` comes as soon as its text is done, and its speakers follow in a `final.speakers` message: [The text first, its speakers after](https://platform.vatis.tech/docs/realtime/speakers-and-channels#the-text-first-its-speakers-after). |
| `multichannel` | `true`, `false` | `false` | The audio has two channels, interleaved, each transcribed on its own; the channel is the speaker. Counts as 2 live sessions. Not with `diarize`: [Two-channel calls](https://platform.vatis.tech/docs/realtime/speakers-and-channels#two-channel-calls). |
| `remove_fillers` | `true`, `false` | `false` | `true`: filler words and hesitations are left out. |
| `punctuation` | `true`, `false` | `true` | Punctuation and capitals in final text, and in the finished part of a partial. `false`: lowercase words without punctuation. |
| `numbers` | `digits`, `words` | `digits` | Numbers in final text as digits, with times and units in their short form (`30`, `3:30`, `70km/h`). `words`: in words (`treizeci`). The words being spoken in a partial have numbers in words either way. |
| `entities` | `true`, `false` | the value of `punctuation` | Names, dates and the like. Given as `true`, each word of a `final` carries `entity`, the kind found or `null` (words come with `timestamps=true`). `false` turns the marking off. |
| `vocabulary_id` | a vocabulary id, `voc_...` |  | A saved list of names and terms to get right, in effect from the first word ([Vocabularies](https://platform.vatis.tech/docs/realtime/vocabularies)). An id that names no vocabulary of your workspace: `invalid_parameter`. |
| `vocabulary_strength` | 0 to 2, a decimal number | `1.0` | How hard the service leans towards the vocabulary's entries, of both lists ([Strength](https://platform.vatis.tech/docs/realtime/vocabularies#strength)). |
| `client_reference` | at most 200 printable characters |  | Repeated in `session.started`, for your own logs. |
| `store` | `true`, `false` | `true` | `false`: nothing about the session is kept but its usage. Its Activity row has no id, model or key ([Usage](https://platform.vatis.tech/docs/usage)). |

- **Example address:** `wss://api.eu.vatis.tech/v1/speech-to-text/realtime?model_id=vatis_ro_v9_realtime&sample_rate=16000&timestamps=true&diarize=true`
- **Booleans** are `true` or `false` (also `1` or `0`).
- **Strict query:** an unknown parameter or an empty value is refused with `invalid_parameter`, and `param` names it ([Strict parameters](https://platform.vatis.tech/docs/errors#strict-parameters)). An empty `token` counts as not sent. A parameter given twice takes the last value.
- `session.started` repeats every parameter as applied, in `config`, without the token. With `vocabulary_id` or `vocabulary_strength` it also has `vocabulary_entries`, the saved vocabulary's entries when the session started, never the entries themselves. With `commit=turn` it has `turn_sensitivity` too (the key is absent in other modes).
