RecognizedWord

data class RecognizedWord(val text: String, val confidence: Float? = null, val startMillis: Long? = null, val durationMillis: Long? = null)

One word in a recognized utterance, with the recognizer's confidence and timing when reported.

Constructors

Link copied to clipboard
constructor(text: String, confidence: Float? = null, startMillis: Long? = null, durationMillis: Long? = null)

Properties

Link copied to clipboard

The recognizer's confidence from 0 to 1, or null when not reported.

Link copied to clipboard

How long the word lasts, in milliseconds, if reported.

Link copied to clipboard

When the word starts, in milliseconds from the start of the recording, if reported.

Link copied to clipboard

The word as the recognizer wrote it.

Link copied to clipboard