View as Markdown

API reference: @salmonui/inputs/speech-to-text

useSpeechRecognitionfunction

import { useSpeechRecognition } from '@salmonui/inputs/speech-to-text';
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.