Struct google_speech1_beta1::SpeechRecognitionAlternative[][src]

pub struct SpeechRecognitionAlternative {
    pub confidence: Option<f32>,
    pub transcript: Option<String>,
}

Alternative hypotheses (a.k.a. n-best list).

This type is not used in any activity, and only used as part of another schema.

Fields

Output-only The confidence estimate between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. This field is typically provided only for the top hypothesis, and only for is_final=true results. Clients should not rely on the confidence field as it is not guaranteed to be accurate, or even set, in any of the results. The default of 0.0 is a sentinel value indicating confidence was not set.

Output-only Transcript text representing the words that the user spoke.

Trait Implementations

impl Default for SpeechRecognitionAlternative
[src]

Returns the "default value" for a type. Read more

impl Clone for SpeechRecognitionAlternative
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SpeechRecognitionAlternative
[src]

Formats the value using the given formatter. Read more

impl Part for SpeechRecognitionAlternative
[src]

Auto Trait Implementations