# InlineAssistDictationProps (@salmonui/chat/inline-assist)

> The InlineAssistDictationProps type of @salmonui/chat/inline-assist: SpeechToTextButton props; the transcript is written into the prompt.

Canonical: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistDictationProps

```ts
import type { InlineAssistDictationProps } from '@salmonui/chat/inline-assist';
```

Entry index: https://salmonui.dev/docs/reference/chat/inline-assist (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/chat/inline-assist.md).

## Reference

Kind: type

```ts
type InlineAssistDictationProps = SpeechToTextButtonProps;
```

`SpeechToTextButton` props; the transcript is written into the prompt.

Members (18):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `children` | `children?: ReactNode;` | optional, inherited | Visible label; without children the button is icon-only, named by `localeText.label`. |
| `localeText` | `localeText?: SpeechToTextLocaleText;` | optional, inherited |  |
| `variant` | `variant?: ButtonVariant;` | optional, inherited | Visual weight. Default `'solid'` (or the group's). |
| `tone` | `tone?: ButtonTone;` | optional, inherited | Color role. Default `'neutral'`; `'primary'` for a `floating` button (or the group's). |
| `size` | `size?: ButtonSize;` | optional, inherited | Metric set. Default `'md'` (or the group's). |
| `iconStart` | `iconStart?: ReactNode;` | optional, inherited | Decorative icon before the label (inline-start; follows `dir`). |
| `iconEnd` | `iconEnd?: ReactNode;` | optional, inherited | Decorative icon after the label (inline-end; follows `dir`). |
| `floating` | `floating?: boolean \| ButtonFloatingPosition;` | optional, inherited | Floating action button: circular, elevated, positioned by CSS. |
| `floatingScope` | `floatingScope?: "parent" \| "viewport";` | optional, inherited | `'viewport'` (default, `position: fixed`) or `'parent'` (`position: absolute` in the nearest positioned ancestor). |
| `ref` | `ref?: Ref<HTMLButtonElement>;` | optional, inherited | The `<button>` (or the element `render` returns). |
| `lang` | `lang?: string;` | optional, inherited | BCP 47 recognition language. Default: `document.documentElement.lang`, read when a session starts. |
| `interimResults` | `interimResults?: boolean;` | optional, inherited | Deliver interim (non-final) results. Default `true`. |
| `continuous` | `continuous?: boolean;` | optional, inherited | Keep listening after a pause until `stop()`. Default `true`. |
| `recognizer` | `recognizer?: (() => SpeechRecognizer);` | optional, inherited | Replaces the browser recognizer, e.g. a cloud service. Called once per session. |
| `onTranscriptChange` | `onTranscriptChange?: ((transcript: string, details: SpeechTranscriptDetails) => void);` | optional, inherited | The session transcript changed. |
| `onStart` | `onStart?: (() => void);` | optional, inherited | The recognizer started capturing audio. |
| `onStop` | `onStop?: (() => void);` | optional, inherited | The session ended (`stop()`, `abort()`, an error or the recognizer). |
| `onError` | `onError?: ((error: SpeechRecognitionError) => void);` | optional, inherited | A recognizer error, or `'unsupported'` when `start()` has no recognizer. |
