WebIDLpedia

SpeechSynthesis interface

Definition

Web Speech API defines SpeechSynthesis



[Exposed=Window]
interface SpeechSynthesis : EventTarget {
    readonly attribute boolean pending;
    readonly attribute boolean speaking;
    readonly attribute boolean paused;

    attribute EventHandler onvoiceschanged;

    undefined speak(SpeechSynthesisUtterance utterance);
    undefined cancel();
    undefined pause();
    undefined resume();
    sequence<SpeechSynthesisVoice> getVoices();
};

Methods and attributes that return objects implementing SpeechSynthesis

Referring IDL interfaces/dictionaries