interface SpeechSynthesis
implements EventTarget
import { type SpeechSynthesis } from "https://deno.land/x/ogone@revb3/src/ogone.dom.d.ts";
This Web Speech API export interface is the controller export 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,