View as Markdown

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

SpeechRecognitionErrorCodetype

import type { SpeechRecognitionErrorCode } from '@salmonui/inputs/speech-to-text';
type SpeechRecognitionErrorCode = 'no-speech' | 'aborted' | 'audio-capture' | 'network' | 'not-allowed' | 'service-not-allowed' | 'bad-grammar' | 'language-not-supported' | 'unsupported' | (string & {});

A Web Speech SpeechRecognitionErrorEvent.error code, or 'unsupported'.