[][src]Struct gcp_client::google::cloud::speech::v1p1beta1::SpeechRecognitionAlternative

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

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

Fields

transcript: String

Transcript text representing the words that the user spoke.

confidence: 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.

words: 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 Message for SpeechRecognitionAlternative[src]

impl PartialEq<SpeechRecognitionAlternative> for SpeechRecognitionAlternative[src]

impl StructuralPartialEq 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> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]