pub enum StreamingEvent {
PartialText {
text: String,
replace_chars: usize,
},
SpeechDetected,
}Expand description
A message carrying newly-transcribed text from a streaming chunk.
Variants§
PartialText
Replace the last replace_chars characters with text.
If replace_chars is 0, just append.
SpeechDetected
VAD detected speech in the audio stream (heartbeat for silence timeout).
Auto Trait Implementations§
impl Freeze for StreamingEvent
impl RefUnwindSafe for StreamingEvent
impl Send for StreamingEvent
impl Sync for StreamingEvent
impl Unpin for StreamingEvent
impl UnsafeUnpin for StreamingEvent
impl UnwindSafe for StreamingEvent
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