WebIDLpedia

SpeechGrammarList interface

Definition

Web Speech API defines SpeechGrammarList



// The object representing a speech grammar collection
[Exposed=Window]
interface SpeechGrammarList {
    constructor();
    readonly attribute unsigned long length;
    getter SpeechGrammar item(unsigned long index);
    undefined addFromURI(DOMString src,
                    optional float weight = 1.0);
    undefined addFromString(DOMString string,
                    optional float weight = 1.0);
};

Methods and attributes that return objects implementing SpeechGrammarList

Referring IDL interfaces/dictionaries