tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

SpeechRecognitionError.webidl (908B)


      1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      4 * You can obtain one at http://mozilla.org/MPL/2.0/.
      5 */
      6 
      7 enum SpeechRecognitionErrorCode {
      8  "no-speech",
      9  "aborted",
     10  "audio-capture",
     11  "network",
     12  "not-allowed",
     13  "service-not-allowed",
     14  "bad-grammar",
     15  "language-not-supported"
     16 };
     17 
     18 [Pref="media.webspeech.recognition.enable",
     19 Exposed=Window]
     20 interface SpeechRecognitionError : Event
     21 {
     22  constructor(DOMString type,
     23              optional SpeechRecognitionErrorInit eventInitDict = {});
     24 
     25  readonly attribute SpeechRecognitionErrorCode error;
     26  readonly attribute DOMString? message;
     27 };
     28 
     29 dictionary SpeechRecognitionErrorInit : EventInit
     30 {
     31  SpeechRecognitionErrorCode error = "no-speech";
     32  DOMString message = "";
     33 };