interface SpeechSynthesis
implements EventTarget
import { type SpeechSynthesis } from "https://deno.land/x/windmill@v1.361.1/node_modules/evt/lib/types/lib.dom.d.ts";
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,