Skip to main content
Video tutorial: Teach your agent how to say names and brands, narrated on the dashboard (2:15).
Some words are rare enough that recognition gets them almost right: a surname heard as a common word, a product name split in two. Custom vocabulary (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/transcribe request and every /ws/stt stream 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.
Changes apply from the next call on. An agent can still carry its own list in its config (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:
They are added after the agent’s own list, within the same limits.

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:
With the SDKs, pass 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 400 validation.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 language the language is detected and the keyterms apply to it; sending the language is still best for one-word replies.
  • No extra charge.