pub struct SentenceChunker { /* private fields */ }Available on crate feature
audio only.Expand description
Buffers LLM tokens and emits complete sentences at delimiter boundaries.
This reduces time-to-first-audio by sending each sentence to TTS as soon as it’s complete, rather than waiting for the full response.
Implementations§
Trait Implementations§
Source§impl Default for SentenceChunker
impl Default for SentenceChunker
Source§fn default() -> SentenceChunker
fn default() -> SentenceChunker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SentenceChunker
impl RefUnwindSafe for SentenceChunker
impl Send for SentenceChunker
impl Sync for SentenceChunker
impl Unpin for SentenceChunker
impl UnsafeUnpin for SentenceChunker
impl UnwindSafe for SentenceChunker
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