[][src]Struct google_speech1_beta1::SpeechRecognitionAlternative

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

confidence: Option<f32>

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.

transcript: Option<String>

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

Trait Implementations

impl Clone for SpeechRecognitionAlternative[src]

impl Debug for SpeechRecognitionAlternative[src]

impl Default for SpeechRecognitionAlternative[src]

impl<'de> Deserialize<'de> for SpeechRecognitionAlternative[src]

impl Part for SpeechRecognitionAlternative[src]

impl Serialize for SpeechRecognitionAlternative[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any