pub struct SynthEvent {
pub kind: EventKind,
pub text_position: usize,
pub audio_position_ms: u32,
}Expand description
An event fired during synthesis, mirroring espeak_EVENT from speak_lib.h.
In the C library these are delivered via a callback. In Rust they are
returned as a Vec<SynthEvent> alongside the PCM samples from
EspeakNg::synth.
Fields§
§kind: EventKindThe type of event.
text_position: usizeCharacter offset in the input text where this event originates.
audio_position_ms: u32Time offset within the generated audio in milliseconds.
Trait Implementations§
Source§impl Clone for SynthEvent
impl Clone for SynthEvent
Source§fn clone(&self) -> SynthEvent
fn clone(&self) -> SynthEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SynthEvent
impl RefUnwindSafe for SynthEvent
impl Send for SynthEvent
impl Sync for SynthEvent
impl Unpin for SynthEvent
impl UnsafeUnpin for SynthEvent
impl UnwindSafe for SynthEvent
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