Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SpeechSynthesisUtterance

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.)

interface SpeechSynthesisUtterance extends EventTarget {
lang: string;
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;
pitch: number;
rate: number;
text: string;
voice: SpeechSynthesisVoice | null;
volume: number;
addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(
type: K,
options?: boolean | AddEventListenerOptions,
): void;
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void;
removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(
type: K,
options?: boolean | EventListenerOptions,
): void;
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void;
}
var SpeechSynthesisUtterance: {
new (text?: string): SpeechSynthesisUtterance;
}
;

§Extends

§Properties

§
lang: string
[src]
§
onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null
[src]
§
onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null
[src]
§
onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null
[src]
§
onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null
[src]
§
onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null
[src]
§
onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null
[src]
§
onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null
[src]
§
pitch: number
[src]
§
rate: number
[src]
§
text: string
[src]
§
volume: number
[src]

§Methods

§
addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(
type: K,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(
type: K,
options?: boolean | EventListenerOptions,
): void
[src]
§
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void
[src]