Skip to main content
Module

x/evt/lib/types/lib.dom.ts>SpeechRecognition

💧EventEmitter's typesafe replacement
Go to Latest
interface SpeechRecognition
implements EventTarget
import { type SpeechRecognition } from "https://deno.land/x/evt@v2.4.3/lib/types/lib.dom.ts";

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