> ## 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.

# Dictation Web Component

> Drop-in web component for real-time speech-to-text with built-in UI

The Dictation Web Component handles microphone management, push-to-talk, command parsing, and editor wiring.

```html theme={"system"}
<script type="module" src="https://cdn.medera.info/dictation/v1/dictation.js"></script>

<medera-dictation
  access-token="..."
  language="en-US"
  punctuation="smart"
  commands='["new_paragraph", "next_section", "period"]'
></medera-dictation>

```

## Events

| Event     | Payload             |
| :-------- | :------------------ |
| `interim` | `{ text }`          |
| `final`   | `{ text }`          |
| `command` | `{ command, args }` |
| `error`   | `{ code, message }` |
