mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Add stubbed Speech API
This commit is contained in:
committed by
Tim Flynn
parent
f17ea50618
commit
99923eac8d
Notes:
github-actions[bot]
2026-02-06 11:24:42 +00:00
Author: https://github.com/gmta Commit: https://github.com/LadybirdBrowser/ladybird/commit/99923eac8d9 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7532 Reviewed-by: https://github.com/trflynn89 ✅
31
Libraries/LibWeb/Speech/SpeechRecognition.idl
Normal file
31
Libraries/LibWeb/Speech/SpeechRecognition.idl
Normal file
@@ -0,0 +1,31 @@
|
||||
#import <DOM/EventHandler.idl>
|
||||
#import <DOM/EventTarget.idl>
|
||||
#import <Speech/SpeechGrammarList.idl>
|
||||
|
||||
// https://wicg.github.io/speech-api/#speechrecognition
|
||||
[Exposed=Window]
|
||||
interface SpeechRecognition : EventTarget {
|
||||
constructor();
|
||||
|
||||
attribute SpeechGrammarList grammars;
|
||||
attribute DOMString lang;
|
||||
attribute boolean continuous;
|
||||
attribute boolean interimResults;
|
||||
attribute unsigned long maxAlternatives;
|
||||
|
||||
[FIXME] undefined start();
|
||||
[FIXME] undefined stop();
|
||||
[FIXME] undefined abort();
|
||||
|
||||
attribute EventHandler onaudiostart;
|
||||
attribute EventHandler onsoundstart;
|
||||
attribute EventHandler onspeechstart;
|
||||
attribute EventHandler onspeechend;
|
||||
attribute EventHandler onsoundend;
|
||||
attribute EventHandler onaudioend;
|
||||
attribute EventHandler onresult;
|
||||
attribute EventHandler onnomatch;
|
||||
attribute EventHandler onerror;
|
||||
attribute EventHandler onstart;
|
||||
attribute EventHandler onend;
|
||||
};
|
||||
Reference in New Issue
Block a user