> ## Documentation Index
> Fetch the complete documentation index at: https://docs.medera.info/llms.txt
> Use this file to discover all available pages before exploring further.

# Interim Results

> Low-latency transcript previews during dictation

Interim results stream sub-second previews so the editor can render text as the clinician speaks. Interim text is **not stable** — only the final result should be persisted.

```javascript theme={"system"}
ws.on('interim', (e) => {
  // e.text is a preview; replace previous interim
  editor.setPreviewText(e.text);
});

ws.on('final', (e) => {
  // commit
  editor.commitText(e.text);
});

```
