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

MDN Reference

interface SpeechSynthesisUtterance {
    $destroyListeners?: any[];
    lang: string;
    onboundary: Object;
    onend: Object;
    onerror: Object;
    onmark: Object;
    onpause: Object;
    onresume: Object;
    onstart: Object;
    pitch: number;
    rate: number;
    text: string;
    voice: SpeechSynthesisVoice;
    volume: number;
    addEventListener<K>(type, listener, options?): void;
    addEventListener(type, listener, options?): void;
    dispatchEvent(event): boolean;
    removeEventListener<K>(type, listener, options?): void;
    removeEventListener(type, listener, options?): void;
}

Hierarchy

Properties

$destroyListeners?: any[]
lang: string
onboundary: Object
onend: Object
onerror: Object
onmark: Object
onpause: Object
onresume: Object
onstart: Object
pitch: number
rate: number
text: string
volume: number

Methods

  • Type Parameters

    Parameters

    Returns void

  • Parameters

    Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    MDN Reference

    Parameters

    Returns boolean

  • Type Parameters

    Parameters

    Returns void

  • Parameters

    Returns void