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/.
7 enum SpeechRecognitionErrorCode {
13 "service-not-allowed",
15 "language-not-supported"
18 [Pref="media.webspeech.recognition.enable",
19 Func="SpeechRecognition::IsAuthorized",
21 interface SpeechRecognitionError : Event
23 constructor(DOMString type,
24 optional SpeechRecognitionErrorInit eventInitDict = {});
26 readonly attribute SpeechRecognitionErrorCode error;
27 readonly attribute DOMString? message;
30 dictionary SpeechRecognitionErrorInit : EventInit
32 SpeechRecognitionErrorCode error = "no-speech";
33 DOMString message = "";