Files
ladybird/Libraries/LibWeb/Speech/SpeechSynthesis.idl
Shannon Booth cc6e048bd6 LibWeb+LibIDL: Remove support for #import directives during parsing
These no longer serve any purpose now that we run the IDLGenerator
on all of these files at once.
2026-04-24 20:08:29 +02:00

21 lines
632 B
Plaintext

// https://wicg.github.io/speech-api/#speechsynthesis
[Exposed=Window]
interface SpeechSynthesis : EventTarget {
readonly attribute boolean pending;
readonly attribute boolean speaking;
readonly attribute boolean paused;
attribute EventHandler onvoiceschanged;
[FIXME] undefined speak(SpeechSynthesisUtterance utterance);
undefined cancel();
[FIXME] undefined pause();
[FIXME] undefined resume();
sequence<SpeechSynthesisVoice> getVoices();
};
// https://wicg.github.io/speech-api/#tts-section
partial interface Window {
[SameObject] readonly attribute SpeechSynthesis speechSynthesis;
};