Files
ladybird/Libraries/LibWeb/Speech/SpeechSynthesis.idl
Jelle Raaijmakers 0a334f50db LibWeb: Stub SpeechSynthesis.cancel()
This was preventing an Emscripten compiled version of ScummVM to load
games.
2026-02-10 11:58:23 +01:00

26 lines
777 B
Plaintext

#import <DOM/EventTarget.idl>
#import <HTML/Window.idl>
#import <Speech/SpeechSynthesisUtterance.idl>
#import <Speech/SpeechSynthesisVoice.idl>
// 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;
};