Struct google_speech1::SpeechRecognitionAlternative [−][src]
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>
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.
words: Option<Vec<WordInfo>>
Output-only A list of word-specific information for each recognized word.
Trait Implementations
impl Default for SpeechRecognitionAlternative
[src]
impl Default for SpeechRecognitionAlternative
fn default() -> SpeechRecognitionAlternative
[src]
fn default() -> SpeechRecognitionAlternative
Returns the "default value" for a type. Read more
impl Clone for SpeechRecognitionAlternative
[src]
impl Clone for SpeechRecognitionAlternative
fn clone(&self) -> SpeechRecognitionAlternative
[src]
fn clone(&self) -> SpeechRecognitionAlternative
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for SpeechRecognitionAlternative
[src]
impl Debug for SpeechRecognitionAlternative
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for SpeechRecognitionAlternative
[src]
impl Part for SpeechRecognitionAlternative
Auto Trait Implementations
impl Send for SpeechRecognitionAlternative
impl Send for SpeechRecognitionAlternative
impl Sync for SpeechRecognitionAlternative
impl Sync for SpeechRecognitionAlternative