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 [Constructor(DOMString type, optional SpeechRecognitionErrorInit eventInitDict)]
19 interface SpeechRecognitionError : Event
21 readonly attribute SpeechRecognitionErrorCode error;
22 readonly attribute DOMString? message;
25 dictionary SpeechRecognitionErrorInit : EventInit
27 SpeechRecognitionErrorCode error = "no-speech";
28 DOMString message = "";