/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ interface nsISupports; [SecureContext, Pref="media.webspeech.recognition.enable", Exposed=Window] interface SpeechRecognitionEvent : Event { constructor(DOMString type, SpeechRecognitionEventInit eventInitDict); readonly attribute unsigned long resultIndex; readonly attribute SpeechRecognitionResultList? results; readonly attribute any interpretation; readonly attribute Document? emma; }; dictionary SpeechRecognitionEventInit : EventInit { unsigned long resultIndex = 0; required SpeechRecognitionResultList results; any interpretation = null; Document? emma = null; };