pub enum ResultReason {
Show 14 variants
NoMatch,
Canceled,
RecognizingSpeech,
RecognizedSpeech,
RecognizingIntent,
RecognizedIntent,
TranslatingSpeech,
TranslatedSpeech,
SynthesizingAudio,
SynthesizingAudioCompleted,
RecognizingKeyword,
RecognizedKeyword,
SynthesizingAudioStarted,
VoicesListRetrieved,
}
Expand description
ResultReason specifies the possible reasons a recognition result might be generated.
Variants
NoMatch
NoMatch indicates speech could not be recognized. More details can be found in the NoMatchDetails object.
Canceled
Canceled indicates that the recognition was canceled. More details can be found using the CancellationDetails object.
RecognizingSpeech
RecognizingSpeech indicates the speech result contains hypothesis text.
RecognizedSpeech
RecognizedSpeech indicates the speech result contains final text that has been recognized. Speech Recognition is now complete for this phrase.
RecognizingIntent
RecognizingIntent indicates the intent result contains hypothesis text and intent.
RecognizedIntent
RecognizedIntent indicates the intent result contains final text and intent. Speech Recognition and Intent determination are now complete for this phrase.
TranslatingSpeech
TranslatingSpeech indicates the translation result contains hypothesis text and its translation(s).
TranslatedSpeech
TranslatedSpeech indicates the translation result contains final text and corresponding translation(s). Speech Recognition and Translation are now complete for this phrase.
SynthesizingAudio
SynthesizingAudio indicates the synthesized audio result contains a non-zero amount of audio data
SynthesizingAudioCompleted
SynthesizingAudioCompleted indicates the synthesized audio is now complete for this phrase.
RecognizingKeyword
RecognizingKeyword indicates the speech result contains (unverified) keyword text.
RecognizedKeyword
RecognizedKeyword indicates that keyword recognition completed recognizing the given keyword.
SynthesizingAudioStarted
SynthesizingAudioStarted indicates the speech synthesis is now started
VoicesListRetrieved
VoicesListRetrieved indicates the voices list has been retrieved successfully.
Implementations
sourceimpl ResultReason
impl ResultReason
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ResultReason
impl Send for ResultReason
impl Sync for ResultReason
impl Unpin for ResultReason
impl UnwindSafe for ResultReason
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more