keyterms) is a list of the words you expect. When what Lokutor hears is close to one of them, it writes your spelling.
It works on voice agents (web and phone calls), on POST /stt/transcribe and on live WS /ws/stt streams.
Dictionaries and voice agents
Custom words live in dictionaries, together with how the voice should say your terms. In the dashboard, open Dictionaries, pick or create one, and list the terms under Words to recognise: your business name, the people callers ask for, products, streets. Then:- your default dictionary’s words apply to every call, every
/stt/transcriberequest and every/ws/sttstream on your account; - any other dictionary applies to the agents that pick it (the agent → Agent → Dictionaries), and to the API requests that name it in
dictionary_ids.
keyterms); those come first.
Voice agents (/ws/agent)
An agent’s own list (its config’s keyterms) and your dictionaries apply to its calls. A connection can add words for that session only with the keyterms query parameter, comma-separated, URL-encoded:
POST /stt/transcribe
Add keyterms to the request, as a list of strings or one comma-separated string, and/or dictionary_ids to use your dictionaries’ words. With a file upload, send keyterms and dictionary_ids form fields in the comma-separated form. Your default dictionary’s words always apply, after the request’s own.
WS /ws/stt
Put keyterms (and/or dictionary_ids) in the first JSON message. They apply to every partial and final transcript of that stream, with your default dictionary’s words after them:
keyterms to STTClient.transcribe and to SpeechToTextClient (Speech-to-Text).
Limits and behaviour
- Up to 100 terms of up to 40 characters each, per request and per dictionary. Repeats (ignoring case) and empty entries are dropped. More than that in a request answers
400validation.invalid_request_format. When a request’s own terms and its dictionaries’ add up to more than 100, the request’s own come first, then the dictionaries it names, then the default’s. - A term is matched against what was heard across up to three words, so a name heard in pieces is put back together (“su bizarreta” becomes “Zubizarreta”) and written in your spelling and casing. Terms of several words (“Clínica Sol”) work the same way.
- At least one of the words heard must be uncommon in the language, so everyday speech is left as it was said: a keyterm cannot turn “el locutor de radio” into your product name.
- All nine recognised languages. Without
languagethe language is detected and the keyterms apply to it; sending the language is still best for one-word replies. - No extra charge.