Description

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.

Example

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

Hierarchy (view full)

Properties

boost: number

Description

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

phrases: string[]

Description

Array of keyword to enhance by the ML engine.

Methods

  • Returns string

    Description

    Returns the name of this object's type.

  • Parameters

    • type: string

    Returns boolean

    Description

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

  • Parameters

    Returns boolean

    Description

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

Generated using TypeDoc