Skip to main content
Follow along with the runnable example. This guide walks through the Dictionary terms example in corti-examples — bootstrap your build from it or use it as reference.
Keyterms bias speech recognition toward a custom vocabulary — drug names, proper nouns, acronyms, and other domain terms the model may not otherwise get right. Unlike replacements, which rewrite the final text, keyterms act before transcription to make the model more likely to produce the term in the first place. This guide shows how to configure keyterms through the Dictation Web Component and manage a reusable term set.
For how keyterms behave — case-sensitivity, the per-connection and per-term limits, and roadmap — see the Custom Dictionary Keyterms reference. This page focuses on wiring them into your app.

Configure keyterms

Add a keyterms object to your dictationConfig. Its terms array holds one { term } entry per word or phrase.
dictationConfig is an object, so it must be set as a JavaScript property — not an HTML attribute. Rebuild and reassign the config when your term set changes; it re-applies on the next connection.
Keyterms are case-sensitive, so define each term with the casing you want preserved (e.g. "Corti", not "corti"). Each term is limited to 50 characters, with up to 1,000 terms per connection — see the reference for details.

Manage a term set

As with replacements, terms usually come from a catalog plus user-defined entries. Model each with a stable id so it can be edited, removed, or protected, then derive the config from the active set.
JavaScript
Persist a user’s term set per API client (e.g. keyed by clientId:tenant) so their vocabulary follows them across sessions without leaking between tenants.

Export and share a term set

To move a term set between environments or check it into source control, serialize it in the config shape so it round-trips cleanly:
corti-terms.json

Next steps

Custom Dictionary Keyterms

Case-sensitivity, limits, and roadmap for the keyterms feature.

Commands

Turn spoken command phrases into real editor actions.

Example code

The complete, runnable Dictionary terms example in corti-examples.
Please contact us for help or questions.