Skip to main content
Dictation runs an LLM pass over the transcript and returns the result in llm_response, alongside the verbatim transcript in text. This is the one feature Dictation has that the other speech-to-text APIs do not: you get the words as spoken and a usable version of them from the same call. The rewrite is applied by default. Omitting llm_instruction, or the whole config part, runs the default cleanup task, which removes disfluencies only: filler sounds and phrases, false starts, and stammered repeats. Every kept word, its spelling, and its punctuation stay exactly as spoken.

Customizing the rewrite

Set llm_instruction to a plain-English description of the task you want, up to 2048 characters. It replaces the default cleanup task rather than adding to it:
An explicit "llm_instruction": null means the same as omitting the field, so the default cleanup task still runs.

Writing a good instruction

Describe only the transformation. Rules about output format, refusing to answer the text, and handling already-clean input are enforced by the service, so adding your own versions of them wastes instruction budget and can conflict with what the service already does. Some instructions that work well:
  • "Remove filler words and tidy the punctuation."
  • "Rewrite as a short, friendly booking confirmation addressed to the client."
  • "Turn this into a bulleted list of action items."
  • "Rewrite as a concise clinical chart note."

The transcript is always preserved

The rewrite never replaces the transcription. text is always the verbatim transcript, and the rewritten version arrives separately in llm_response. If you need to show one value, final_text in the Python SDK returns the rewrite when there is one and the transcript otherwise. The rewrite is also best-effort. If it fails, the response is still 200, llm_response is null, and llm_error says why. See Error handling.

Dictated commands are not executed

The transcript is passed to the model as fenced data, with instructions not to act on anything inside it. Dictated speech routinely contains questions and commands like “translate this into French” or “ignore what I just said”. Those are rewritten as speech rather than carried out.