[][src]Struct google_speech1::SpeechRecognitionAlternative

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

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>

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 set only for the top alternative of a non-streaming result or, of a streaming result where is_final=true. This field is not guaranteed to be accurate and users should not rely on it to be always provided. The default of 0.0 is a sentinel value indicating confidence was not set.

transcript: Option<String>

Transcript text representing the words that the user spoke.

words: Option<Vec<WordInfo>>

A list of word-specific information for each recognized word. Note: When enable_speaker_diarization is true, you will see all the words from the beginning of the audio.

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