Turn it on
On Prisma v3.0, list the words inkeyterms. Spelling need not be exact, and phrases and any script are fine. This example uses the sample clip from the Examples below:
keyterms: topic (what the recording is about), previous_text (the transcript of the clip just before this one) and speaker_names (names that may be spoken). See Context.
On Prisma v2.5, use word boosting instead: bias_list with single words and bias_score for the strength. See By model.
Examples
A synthetic clip (Timbre v3.0, Hindi, 6.6 seconds) with a person’s name, two product names and a banking term, transcribed by Prisma v3.0 withlanguage_code=hi-IN:
With
keyterms, the product name Inya is no longer heard as India, the name is spelled as listed, and Vachana is written in Latin letters as listed. The same request gave the same two transcripts each time it was run. Synthetic speech is cleaner than most real recordings, so test on your own audio.
By interface
The field names are the same on every interface. Only where they go changes.- REST
- Realtime
- Batch
Form fields on
POST /stt/v3: keyterms, topic, previous_text and speaker_names on Prisma v3.0; bias_list and bias_score on Prisma v2.5. Send lists as a JSON array (as above) or a comma-separated string.By model
On Prisma v3.0,
bias_list is still accepted as the older name of keyterms. It is used only when keyterms is not sent.
Rules and limits
Writing the lists. Send a list as a JSON array or a comma-separated string; use the JSON form when an item contains a comma. Casing does not matter. A listed word that is not spoken should not appear in the transcript.
bias_score on Prisma v2.5.
Raise it only if a word is still missed: a stronger score can make the model write a listed word where it was not spoken. Use word boosting with
format=verbatim: boost words are spoken-form words, so digits and formatted numbers do not match. Boosting applies when language_code is a single language.
Combining context on Prisma v3.0. On REST and Realtime, any combination of the four fields works. On Batch, send only one of these: keyterms, topic, topic with keyterms, or speaker_names. Any other mix returns 400 INVALID_CONFIG when the job is created.
No context field may contain <| or |>.
Things to watch for
- Context can make results worse. On some audio, hints lower accuracy. Compare transcripts with and without them on your own recordings before you rely on them.
- Prisma v2.5 ignores a bad list without telling you. On REST and Realtime, if any
bias_listentry breaks the rules, orbias_scoreis not an allowed value, the audio is transcribed without boosting and you still get200. If boosting seems to do nothing, check the list first. (Batch rejects the job instead.) - Realtime ignores an invalid
keytermsvalue on Prisma v3.0 and transcribes without it. bias_listwithoutbias_score. On REST and Realtime boosting stays off unless you send a non-zerobias_score. On Batch,1.0is used.- Prisma v3.0 ignores
bias_score, and ignoresbias_listwhenkeytermsis also sent. - Prisma v3.0 fields sent to Prisma v2.5. Realtime ignores
topic,previous_textandspeaker_names. Batch refuseskeyterms,topicandspeaker_nameswith400 INVALID_CONFIG. REST: TBC. - A mid-session update that is invalid is ignored as a whole, and the previous settings stay in effect.
- Romanised output. With
format=transliterate, writekeytermsin Latin letters to match the output. - Python SDK. The SDK calls
keytermskeywords. Its streaming client does not sendtopic,previous_text,speaker_namesor word boosting; connect to the Realtime WebSocket directly for those.
Related
Context on Prisma v3.0
topic, previous_text and speaker_names in detail, with examples.Find and replace
Fix the written form after transcription instead of steering recognition.
Build a request
Try
keyterms and word boosting in the request builder.Sample audio
More clips to test with, one per language.

