RecognizerResult interface

Value returned from a recognizer.

Properties

alteredText

If original text is changed by things like spelling, the altered version.

entities

(Optional) entities recognized.

intents

Intents recognized for the utterance.

text

Utterance sent to recognizer

Property Details

alteredText

If original text is changed by things like spelling, the altered version.

alteredText?: string

Property Value

string

entities

(Optional) entities recognized.

entities?: any

Property Value

any

intents

Intents recognized for the utterance.

intents: Record<string, IntentScore>

Property Value

Record<string, IntentScore>

Remarks

A map of intent names to an object with score is returned.

text

Utterance sent to recognizer

text: string

Property Value

string