Rate this page:

DialogflowStreamingRecognitionResult

Contains a speech recognition result corresponding to a portion of the audio that is currently being processed or an indication that this is the end of the single requested utterance. Add the following line to your scenario code to use the interface:

require(Modules.AI);

Props

confidence

Copy URL
confidence: 

number

The Speech confidence between 0.0 and 1.0 for the current portion of audio. A higher number indicates an estimated greater likelihood that the recognized words are correct. The default of 0.0 is a sentinel value indicating that confidence was not set. This field is typically only provided if is_final is true and you should not rely on it being accurate or even set.

isFinal

Copy URL
isFinal: 

boolean

The default of 0.0 is a sentinel value indicating confidence was not set. If false, the StreamingRecognitionResult represents an interim result that may change. If true, the recognizer will not return any further hypotheses about this piece of the audio.

messageType

Copy URL
messageType: 

string

Type of the result message.

transcript

Copy URL
transcript: 

string

Optional. Transcript text representing the words that the user spoke.