Struct google_api_proto::google::cloud::speech::v1p1beta1::StreamingRecognitionResult
source · 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,
}
Expand description
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§
source§impl Clone for StreamingRecognitionResult
impl Clone for StreamingRecognitionResult
source§fn clone(&self) -> StreamingRecognitionResult
fn clone(&self) -> StreamingRecognitionResult
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StreamingRecognitionResult
impl Debug for StreamingRecognitionResult
source§impl Default for StreamingRecognitionResult
impl Default for StreamingRecognitionResult
source§impl Message for StreamingRecognitionResult
impl Message for StreamingRecognitionResult
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for StreamingRecognitionResult
impl PartialEq for StreamingRecognitionResult
source§fn eq(&self, other: &StreamingRecognitionResult) -> bool
fn eq(&self, other: &StreamingRecognitionResult) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StreamingRecognitionResult
Auto Trait Implementations§
impl Freeze for StreamingRecognitionResult
impl RefUnwindSafe for StreamingRecognitionResult
impl Send for StreamingRecognitionResult
impl Sync for StreamingRecognitionResult
impl Unpin for StreamingRecognitionResult
impl UnwindSafe for StreamingRecognitionResult
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request