pub enum Event {
SessionStarted(RequestId),
SessionEnded(RequestId),
StartDetected(RequestId, Offset),
EndDetected(RequestId, Offset),
Recognizing(RequestId, Recognized, Offset, Duration, RawMessage),
Recognized(RequestId, Recognized, Offset, Duration, RawMessage),
UnMatch(RequestId, Offset, Duration, RawMessage),
}
Expand description
Recognizer events.
The events are used to notify the user of the progress of the speech recognition.
Variants§
SessionStarted(RequestId)
The session started.
SessionEnded(RequestId)
The session ended.
StartDetected(RequestId, Offset)
The speech recognition started.
EndDetected(RequestId, Offset)
The speech recognition ended.
Recognizing(RequestId, Recognized, Offset, Duration, RawMessage)
Recognizing event.
Recognized(RequestId, Recognized, Offset, Duration, RawMessage)
Recognized event.
UnMatch(RequestId, Offset, Duration, RawMessage)
UnMatch event. This event is triggered when the speech recognition does not match any text.
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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
Mutably borrows from an owned value. Read more