WebIDLpedia

SpeechRecognitionPhrase interface

Definition

Web Speech API defines SpeechRecognitionPhrase



// The object representing a phrase for contextual biasing.
[Exposed=Window]
interface SpeechRecognitionPhrase {
    constructor(DOMString phrase, optional float boost = 1.0);
    readonly attribute DOMString phrase;
    readonly attribute float boost;
};

Methods and attributes that return objects implementing SpeechRecognitionPhrase

Referring IDL interfaces/dictionaries