# SpeechToTextButton (@salmonui/inputs/speech-to-text)

> The SpeechToTextButton function of @salmonui/inputs/speech-to-text: Toggle button that starts and stops speech recognition: Button with aria-pressed while listening. The name stays constant; the state hint is the accessible description and the title. Disabled (and described as unsupported) when the browser has no speech recognition and no recognizer is given.

Canonical: https://salmonui.dev/docs/reference/inputs/speech-to-text/SpeechToTextButton

```ts
import { SpeechToTextButton } from '@salmonui/inputs/speech-to-text';
```

Entry index: https://salmonui.dev/docs/reference/inputs/speech-to-text (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/inputs/speech-to-text.md).

## Reference

Kind: function

```ts
function SpeechToTextButton(props: SpeechToTextButtonProps): ReactElement;
```

Toggle button that starts and stops speech recognition: `Button` with `aria-pressed` while listening. The name stays
constant; the state hint is the accessible description and the `title`.
Disabled (and described as unsupported) when the browser has no speech
recognition and no `recognizer` is given.
