Transcripts
Create a transcript
Starts the transcription of an audio or video file and answers at once with its transcript, queued.
Serverhttps://api.eu.vatis.tech
POST/v1/speech-to-text
When batch opens on your workspace
Batch transcription is not open on every workspace yet. When GET /v1/models lists a model whose mode is batch, your workspace can use it. Until then, a request answers 400 unsupported_model. Live audio works already: Real-time transcription.
Lets you repeat a request safely: the same key within 24 hours gets the first request's answer, and no second job starts (Idempotency). Another value:
400 invalid_parameter.Values1 to 255 printable characters
Instead of the
Authorization header, for a web page that uploads a file (Create a token). The only query parameter this endpoint takes.Valuesa single-use
batch tokenForm fields
multipart/form-dataAn audio or video file in any common format (WAV, MP3, M4A, FLAC, OGG, Opus, MP4, ...), up to 2 GiB. Send this or
url.Valuesa file
The address of a file: the API downloads it (Files at an address).
Valuesan
http:// or https:// address, up to 8192 charactersWith
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.Values
ro (also ron, in any case); with vatis_multi_v1, one of its languages or several, separated by commasDefaultthe model'sHow many people speak, when you know. Above 8, a slower speaker model with no limit runs. Without
diarize it has no effect.Values1 to 32
At most 2 channels, each transcribed alone: the channel is the speaker (Two channels). Not with
diarize.Values
true, falseDefaultfalsePunctuation and capitals, the capitals of names too.
false: lowercase words without punctuation, and segments cut on pauses alone.Values
true, falseDefaulttruedigits: numbers as digits, times and units in short form (30, 3:30, 70km/h). words: in words (treizeci, trei și treizeci de minute).Values
digits, wordsDefaultdigitsnone: words keep their text, confidence and speaker; start and end (of words and segments) are null.Values
word, noneDefaultwordA saved list of names and terms to get right (Vocabularies), read when the job is accepted. Romanian models only. An id that names no vocabulary of your workspace:
400 invalid_parameter.Valuesa vocabulary id,
voc_...The file's own entries, added to the saved vocabulary's, each written as it should appear (Writing entries). Romanian models only. A bad entry:
400 invalid_parameter, param vocabulary[3].Valuesa JSON list of up to 250 entries, as a string
How hard the service leans towards the entries of both lists. Higher finds more of them, and also writes more of them where they were not said (Strength).
Values0 to 2, a decimal numberDefault
1Taken, and changes nothing: every request is answered
202 at once, and transcribed in the background (Send now, collect later).Values
true, falseDefaultalways onAlso post the result to every enabled webhook when the job ends (Webhooks).
Values
true, falseDefaultfalseYour own data, returned unchanged in the transcript and the webhook delivery.
Valuesa JSON object, as a string, up to 16 KB
false: keep nothing after the webhook delivery (Keeping nothing). Needs webhook or webhook_id: without one, 400 invalid_parameter. The answer still carries an id, to match a delivery to its request, which finds nothing afterwards.Values
true, falseDefaulttrueThe finished transcript also carries these files, made with the default options of Export a transcript (Files with the transcript itself).
Valuesany of
txt, srt, vtt, separated by commasapplication/json
Every request, at once: the transcript,
queued, and the header Location: /v1/transcripts/{id} says where to read it. Ask for it with Get a transcript until it is completed or failed, or have it posted with a webhook. With a vocabulary, the finished transcript's vocabulary says what was applied.application/json
A field unknown, sent twice, out of range, or with one it does not go with; a bad
Idempotency-Key; a url refused or that failed to download; no enabled webhook, or a bad webhook_id; a vocabulary entry that breaks the rules (vocabulary[3]), an unknown vocabulary_id, or a vocabulary on a model or a server that takes none. The param names the field.400 missing_parameter
No
model_id, or neither file nor url.400 invalid_request
A body that is not a valid form: not multipart or urlencoded, malformed, or more than 200 parts.
400 unsupported_model
An unknown
model_id, a real-time one, or no batch model on your workspace yet.400 invalid_audio
An empty file, no audio that can be decoded, or more than 2 channels with
multichannel.400 audio_too_long
The audio is longer than the API takes in one file (10 hours). Split it.
application/json
No key, or a wrong, revoked or expired one. A used, expired or wrong-type token too.
403 account_paused
The workspace is paused: its credit is used up, or it is over its hourly spend limit. The message says which (While a workspace is paused).
409 idempotency_conflict
An
Idempotency-Key used before with other fields or another file (param Idempotency-Key).413 request_too_large
A file or a download over 2 GiB, or a request body over 2 GiB and 2 MB.
429 busy
Your workspace runs as many jobs as it may at once, or too many wait (Work at once). Send again after the seconds of the
Retry-After header.500 internal_error
Something failed on our side. Try again, and quote the
request_id if it stays.- The body is
multipart/form-data. A request with aurland no file may also beapplication/x-www-form-urlencoded. Anything else:400invalid_request. - Booleans are
trueorfalse(also1or0, in any case). An empty value counts as not sent. - Strict fields: an unknown field, a field sent twice, or a second file is
400invalid_parameter, withparamnaming it (Strict parameters). fileandurl: both is400invalid_parameter(paramurl), neither is400missing_parameter(paramfile).- Fields that do not go together,
400invalid_parameter:multichannelwithdiarize(paramdiarize);store=falsewithout a webhook (paramstore);srtorvttinexportswithtimestamps=none(paramexports). - Webhooks:
webhook=truewith no enabled webhook (paramwebhook), or an unknown or turned-offwebhook_id(paramwebhook_id):400invalid_parameter. - Vocabularies (Vocabularies): Romanian models only. The transcript has
vocabularyonly when the request had one:{"id": "voc_...", "strength": 1, "entries": 427}, the saved vocabulary'sid(ornull), the strength, and the entries in effect, never the entries themselves. A saved vocabulary is read when the job is accepted; the entries are not kept after the job ends. No extra price. - Vocabulary refusals,
400invalid_parameter: a bad entry (paramvocabulary[3], its place in the list), a list that is not JSON or holds more than 250 (paramvocabulary), an unknown or deletedvocabulary_id, a strength outside 0 to 2 (paramvocabulary_strength). Another model, or a server whose speech service does not take vocabularies yet, names the field: "vocabularies are not available on this server yet: its speech service is an older release". A file is never transcribed without the vocabulary it asked for. - Size: the form fields together (all but the file) hold at most 1 MB, in at most 200 parts (Limits for files).
- Every request is answered at once, however long the file:
202and the transcript, queued. The result comes by webhook, or from Get a transcript, asked every few seconds until it iscompletedorfailed.asyncis still taken and changes nothing (Send now, collect later). - A file at an address is downloaded in the job, after the answer: a download that fails ends the job
failedwith its errors. The address must be reachable from the internet (Files at an address). - A transcription that fails ends
failed, with itserror, for exampleinvalid_audio. The failed transcript stays readable by its id. - A refused key on a large file is answered while your client still sends, and nothing of the file is kept (Refused before the upload ends).