pub enum EventKind {
Word(u32),
Sentence,
End,
MsgTerminated,
Phoneme(String),
}Expand description
The kind of a SynthEvent, mirroring espeak_EVENT_TYPE.
Variants§
Word(u32)
Start of a word. Payload is the word index within the sentence.
Sentence
Start of a sentence.
End
End of the current sentence or clause.
MsgTerminated
End of the entire synthesis request.
Phoneme(String)
A phoneme boundary (only produced when phoneme events are enabled).
Trait Implementations§
impl Eq for EventKind
impl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnsafeUnpin for EventKind
impl UnwindSafe for EventKind
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