pub struct SpeechSynthesisWordBoundaryEvent {
pub handle: SmartHandle<SPXEVENTHANDLE>,
pub audio_offset: u64,
pub duration_ms: u64,
pub text_offset: u32,
pub word_length: u32,
pub boundary_type: SpeechSynthesisBoundaryType,
}
Expand description
Event passed into speech synthetizer’s callback set_synthesizer_word_boundary_cb.
Fields
handle: SmartHandle<SPXEVENTHANDLE>
audio_offset: u64
duration_ms: u64
text_offset: u32
word_length: u32
boundary_type: SpeechSynthesisBoundaryType
Implementations
sourceimpl SpeechSynthesisWordBoundaryEvent
impl SpeechSynthesisWordBoundaryEvent
pub fn from_handle(handle: SPXEVENTHANDLE) -> Result<Self>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SpeechSynthesisWordBoundaryEvent
impl Send for SpeechSynthesisWordBoundaryEvent
impl !Sync for SpeechSynthesisWordBoundaryEvent
impl Unpin for SpeechSynthesisWordBoundaryEvent
impl UnwindSafe for SpeechSynthesisWordBoundaryEvent
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