Struct google_speech1::api::SpeechRecognitionResult [−][src]
pub struct SpeechRecognitionResult {
pub alternatives: Option<Vec<SpeechRecognitionAlternative>>,
pub channel_tag: Option<i32>,
}
Expand description
A speech recognition result corresponding to a portion of the audio.
This type is not used in any activity, and only used as part of another schema.
Fields
alternatives: Option<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.
channel_tag: Option<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’.
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for SpeechRecognitionResult
impl Send for SpeechRecognitionResult
impl Sync for SpeechRecognitionResult
impl Unpin for SpeechRecognitionResult
impl UnwindSafe for SpeechRecognitionResult
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more