Speech context is used in cases where specific words are expected from the users, the transcription accuracy of these words can be improved, by straightening their likelihood in context. The strength is scaled 1-10 (10 being the strongest increase) the default value is 5.

var options = VoiceML.ListeningOptions.create();
options.addSpeechContext(["run", "jog"], 2);
interface SpeechContext {
    boost: number;
    phrases: string[];
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
}

Hierarchy (view full)

Properties

boost: number

The strength is scaled 1-10 (10 being the strongest increase) the default value is 5.

phrases: string[]

Array of keyword to enhance by the ML engine.

Methods

  • Returns true if the object matches or derives from the passed in type.

    Parameters

    • type: string

    Returns boolean

  • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

    Parameters

    Returns boolean