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

> The SpeechRecognitionState type of @salmonui/inputs/speech-to-text: 'idle' before the first session, 'listening' while a session runs, 'stopped' after it ends.

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

```ts
import type { SpeechRecognitionState } 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: type

```ts
type SpeechRecognitionState = 'idle' | 'listening' | 'stopped';
```

`'idle'` before the first session, `'listening'` while a session runs, `'stopped'` after it ends.
