Skip to Content
Vatis TechAPI docs
Real-time transcription

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.

ParameterValuesDefaultWhat it does
model_idvatis_ro_v9_realtimerequiredThe real-time model: GET /v1/models lists those your workspace can use. Missing, or one not listed: invalid_parameter.
tokena single-use realtime tokenInstead of the Authorization header, for a web page (Tokens for web pages).
encodingpcm_s16le, pcm_f32le, mulaw, alawpcm_s16leThe audio you send, mono, or two channels with multichannel: Audio formats.
sample_ratepcm_s16le, pcm_f32le: 8000, 16000, 22050, 24000, 44100, 48000; mulaw, alaw: 800016000; mulaw, alaw: 8000The audio's sample rate, in Hz. The API converts every rate to 16 kHz.
language_codero (also ron, rum, in any case)the model'sMust match the model.
commitvad, manual, turnvadWhat 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, End of turn.
vad_silence_s0.2 to 3.01.5With 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_sensitivity0.0 to 1.00.5Only with commit=turn. Higher answers sooner, and cuts more pauses inside a sentence; lower waits until the speaker sounds more clearly finished.
timestampstrue, falsefalsefinal and partial messages carry their words, with times.
diarizetrue, falsefalseSpeakers on final and partial messages and on their words: Speakers in a session.
num_speakers1 to 8The number of speakers, when you know it. Only with diarize=true.
speaker_updatestrue, falsefalseOnly 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.
multichanneltrue, falsefalseThe 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.
remove_fillerstrue, falsefalsetrue: filler words and hesitations are left out.
punctuationtrue, falsetruePunctuation and capitals in final text, and in the finished part of a partial. false: lowercase words without punctuation.
numbersdigits, wordsdigitsNumbers 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.
entitiestrue, falsethe value of punctuationNames, 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_ida vocabulary id, voc_...A saved list of names and terms to get right, in effect from the first word (Vocabularies). An id that names no vocabulary of your workspace: invalid_parameter.
vocabulary_strength0 to 2, a decimal number1.0How hard the service leans towards the vocabulary's entries, of both lists (Strength).
client_referenceat most 200 printable charactersRepeated in session.started, for your own logs.
storetrue, falsetruefalse: nothing about the session is kept but its usage. Its Activity row has no id, model or key (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). 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).