#[non_exhaustive]
#[derive(Debug, Clone, PartialEq)]
pub enum RecognitionEvent {
Start,
Stop,
StartOfSpeech { audio_time_usec: Option<u64> },
EndOfSpeech { audio_time_usec: Option<u64> },
Recognition {
text: String,
is_final: bool,
audio_start_time_usec: Option<u64>,
audio_end_time_usec: Option<u64>,
words: Option<Vec<Word>>,
},
Language { id: String },
}
#[derive(Debug, Clone, PartialEq)]
pub struct Word {
pub conf: f32,
pub start_time_usec: u64,
pub end_time_usec: u64,
pub word: String,
}