interface dom.SpeechSynthesis
implements EventTarget
import { type dom } from "https://deno.land/x/evt@v2.4.17/lib/index.ts";
const { SpeechSynthesis } = dom;
This Web Speech API interface is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides.
Properties
onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null
Methods
getVoices(): SpeechSynthesisVoice[]
speak(utterance: SpeechSynthesisUtterance): void
addEventListener<K extends keyof SpeechSynthesisEventMap>(): void
type: K,
listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof SpeechSynthesisEventMap>(): void
type: K,
listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any,
options?: boolean | EventListenerOptions,