interface SpeechRecognition
implements EventTarget
import { type SpeechRecognition } from "https://deno.land/x/evt@v2.3.1/lib/types/lib.dom.ts";
Properties
grammars: SpeechGrammarList
onaudioend: ((this: SpeechRecognition, ev: Event) => any) | null
onaudiostart: ((this: SpeechRecognition, ev: Event) => any) | null
onend: ((this: SpeechRecognition, ev: Event) => any) | null
onerror: ((this: SpeechRecognition, ev: Event) => any) | null
onnomatch: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null
onresult: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null
onsoundend: ((this: SpeechRecognition, ev: Event) => any) | null
onsoundstart: ((this: SpeechRecognition, ev: Event) => any) | null
onspeechend: ((this: SpeechRecognition, ev: Event) => any) | null
onspeechstart: ((this: SpeechRecognition, ev: Event) => any) | null
onstart: ((this: SpeechRecognition, ev: Event) => any) | null
Methods
addEventListener<K extends keyof SpeechRecognitionEventMap>(): void
type: K,
listener: (this: SpeechRecognition, ev: SpeechRecognitionEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof SpeechRecognitionEventMap>(): void
type: K,
listener: (this: SpeechRecognition, ev: SpeechRecognitionEventMap[K]) => any,
options?: boolean | EventListenerOptions,