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

pub struct StreamingRecognitionResult {
    pub alternatives: Vec<SpeechRecognitionAlternative>,
    pub is_final: bool,
    pub stability: f32,
    pub result_end_time: Option<Duration>,
    pub channel_tag: i32,
    pub language_code: String,
}

A streaming speech recognition result corresponding to a portion of the audio that is currently being processed.

Fields

alternatives: Vec<SpeechRecognitionAlternative>

May contain one or more recognition hypotheses (up to the maximum specified in max_alternatives). These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.

is_final: bool

If false, this StreamingRecognitionResult represents an interim result that may change. If true, this is the final time the speech service will return this particular StreamingRecognitionResult, the recognizer will not return any further hypotheses for this portion of the transcript and corresponding audio.

stability: f32

An estimate of the likelihood that the recognizer will not change its guess about this interim result. Values range from 0.0 (completely unstable) to 1.0 (completely stable). This field is only provided for interim results (is_final=false). The default of 0.0 is a sentinel value indicating stability was not set.

result_end_time: Option<Duration>

Time offset of the end of this result relative to the beginning of the audio.

channel_tag: i32

For multi-channel audio, this is the channel number corresponding to the recognized result for the audio from that channel. For audio_channel_count = N, its output values can range from '1' to 'N'.

language_code: String

Output only. The BCP-47 language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.

Trait Implementations

impl Clone for StreamingRecognitionResult[src]

impl Debug for StreamingRecognitionResult[src]

impl Default for StreamingRecognitionResult[src]

impl Message for StreamingRecognitionResult[src]

impl PartialEq<StreamingRecognitionResult> for StreamingRecognitionResult[src]

impl StructuralPartialEq for StreamingRecognitionResult[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]