Module

x/evt/lib/index.ts

šŸ’§EventEmitter's typesafe replacement
Go to Latest
interface dom.SpeechRecognition
implements EventTarget
import { type dom } from "https://deno.land/x/evt@v2.3.1/lib/index.ts";
const { SpeechRecognition } = dom;

Properties

continuous: boolean
interimResults: boolean
lang: string
maxAlternatives: number
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

abort(): void
start(): void
stop(): void
addEventListener<K extends keyof SpeechRecognitionEventMap>(
type: K,
listener: (this: SpeechRecognition, ev: SpeechRecognitionEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof SpeechRecognitionEventMap>(
type: K,
listener: (this: SpeechRecognition, ev: SpeechRecognitionEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void