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

> The useSpeechRecognition function of @salmonui/inputs/speech-to-text: Speech recognition over the Web Speech API or a replaceable recognizer. Options are read when events happen, so callbacks may be inline functions.

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

```ts
import { useSpeechRecognition } 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 useSpeechRecognition(options?: UseSpeechRecognitionOptions): SpeechRecognitionApi;
```

Speech recognition over the
Web Speech API or a replaceable `recognizer`. Options are read when
events happen, so callbacks may be inline functions.
