interface dom.SpeechSynthesisUtterance
implements EventTarget
import { type dom } from "https://deno.land/x/evt@v2.5.2/lib/types/index.ts";
const { SpeechSynthesisUtterance } = dom;
This Web Speech API interface represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.)
Properties
onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null
onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null
onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null
onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null
onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null
onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null
onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null
voice: SpeechSynthesisVoice | null
Methods
addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(): void
type: K,
listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(): void
type: K,
listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any,
options?: boolean | EventListenerOptions,