Files
ladybird/Libraries/LibWeb/Speech/SpeechSynthesisUtterance.idl
2026-01-20 06:51:04 -05:00

24 lines
693 B
Plaintext

#import <DOM/EventTarget.idl>
#import <Speech/SpeechSynthesisVoice.idl>
// https://wicg.github.io/speech-api/#speechsynthesisutterance
[Exposed=Window]
interface SpeechSynthesisUtterance : EventTarget {
constructor(optional DOMString text = "");
attribute DOMString text;
attribute DOMString lang;
attribute SpeechSynthesisVoice? voice;
attribute float volume;
attribute float rate;
attribute float pitch;
attribute EventHandler onstart;
attribute EventHandler onend;
attribute EventHandler onerror;
attribute EventHandler onpause;
attribute EventHandler onresume;
attribute EventHandler onmark;
attribute EventHandler onboundary;
};