Skip to Content
Vatis TechAPI docs
Batch transcription

Parameters

The form fields a request takes and the rules they follow, its headers, and files sent by their address.

Form fields, next to model_id and file. Every one but model_id is optional.

FieldValuesDefaultWhat it does
model_idvatis_ro_v9, vatis_multi_v1requiredA model whose mode is batch (GET /v1/models): Romanian, or 99 languages with detection.
filea fileAn audio or video file in any common format (WAV, MP3, M4A, FLAC, OGG, Opus, MP4, ...), up to 2 GiB. Send this or url.
urlan http:// or https:// address, up to 8192 charactersThe address of a file: the API downloads it (Files at an address).
language_codero (also ron); with vatis_multi_v1, one of its languages or several, separated by commasthe model'sWith vatis_ro_v9, files are Romanian. With vatis_multi_v1, one code is the file's language; several, such as ro,en, have the language detected among them only, part by part, so a recording that mixes them is transcribed in each; none, detected among all its languages. A language the model does not offer: 400 invalid_parameter.
diarizetrue, falsefalseTells the speakers apart (Speakers).
num_speakers1 to 32How many people speak, when you know. Above 8, a slower speaker model with no limit runs. Without diarize it has no effect.
multichanneltrue, falsefalseAt most 2 channels, each transcribed alone: the channel is the speaker. Not with diarize.
remove_fillerstrue, falsefalseRemoves filler words and hesitations from the text.
punctuationtrue, falsetruePunctuation and capitals, the capitals of names too. false: lowercase words without punctuation, and segments cut on pauses alone.
numbersdigits, wordsdigitsdigits: numbers as digits, times and units in short form (30, 3:30, 70km/h). words: in words (treizeci, trei și treizeci de minute).
timestampsword, nonewordnone: words keep their text, confidence and speaker; start and end are null.
vocabulary_ida vocabulary id, voc_...A saved vocabulary of your workspace (Vocabulary).
vocabularya JSON list of up to 250 entries, as a stringThe file's own names and terms, added to the saved ones.
vocabulary_strength0 to 21How hard the service leans towards the entries.
asynctrue, falsealways onTaken, and changes nothing: every request is answered 202 at once (Send now, collect later).
webhooktrue, falsefalseAlso post the result to every enabled webhook when the job ends (Webhooks).
webhook_ida webhook's idPost the result to this webhook only.
metadataa JSON object, as a string, up to 16 KBYour own data, returned unchanged in the transcript and the webhook delivery.
storetrue, falsetruefalse: keep nothing after the webhook delivery. Needs webhook or webhook_id (Keeping nothing).
exportsany of txt, srt, vtt, separated by commasThe finished transcript also carries these files (Exports).

Headers and the token

NameValuesWhat it does
Header AuthorizationBearer <api key>Your API key (Authentication and API keys).
Header Idempotency-Key1 to 255 printable charactersRepeat a request safely (Idempotency).
Query tokena single-use batch tokenInstead of the key, for a web page that uploads a file (Tokens for web pages). The only query parameter this endpoint takes.

Rules for the fields

  • The body is multipart/form-data. A request with a url and no file may also be application/x-www-form-urlencoded. Anything else: 400 invalid_request.
  • Booleans are true or false (also 1 or 0, in any case). An empty value counts as not sent.
  • Strict fields: an unknown field, a field sent twice, or a second file is 400 invalid_parameter, with param naming it (Strict parameters).
  • file and url: both is 400 invalid_parameter (param url), neither is 400 missing_parameter (param file).
  • Fields that do not go together, 400 invalid_parameter: multichannel with diarize (param diarize); store=false without a webhook (param store); srt or vtt in exports with timestamps=none (param exports).
  • Webhooks: webhook=true with no enabled webhook (param webhook), or an unknown or turned-off webhook_id (param webhook_id): 400 invalid_parameter.
  • Size: the form fields together (all but the file) hold at most 1 MB, in at most 200 parts.

Vocabulary

A Romanian file can take a vocabulary: the names and terms it must get right. Wherever they are recognised, they are written exactly as listed, in words and text. A saved one goes by its id, and the file's own entries as a JSON list, up to 250:

curl -sS -H "Authorization: Bearer $VATIS_KEY" https://api.eu.vatis.tech/v1/speech-to-text \
  -F model_id=vatis_ro_v9 -F vocabulary_id=voc_3f9c1a2b7d4e \
  -F vocabulary='["Vatis Tech", "Ispas"]' -F file=@speech.wav

The transcript then says what was applied, never the entries: "vocabulary": {"id": "voc_3f9c1a2b7d4e", "strength": 1, "entries": 427}. Romanian models only, at no extra price. How to write entries, the strength, and the errors: Vocabularies.

Files at an address

  • The API downloads the file itself, so the address must be reachable from the internet. Loopback, link-local and private network addresses are refused: 400 invalid_parameter, at once for an address, in the job for a name that leads to one.
  • Each redirect is checked like the first address. A download that fails (no answer, an answer other than 200, too many redirects, too slow) fails the job with 400 invalid_parameter; a file over 2 GiB with 413 request_too_large; an empty one with 400 invalid_audio.
  • The download happens in the job, after the request is answered: a download that fails ends the job failed, with these errors.

On this page