pub struct ChunkerConfig {
pub min_chunk_chars: usize,
pub max_chunk_chars: usize,
}Expand description
Configuration for the sentence chunker.
Fields§
§min_chunk_chars: usizeMinimum characters before emitting a chunk (default: 20). Avoids sending very short fragments like “Yes.” to TTS.
max_chunk_chars: usizeMaximum characters before forcing a flush (default: 250). Prevents TTS timeouts on very long runs without punctuation.
Trait Implementations§
Source§impl Clone for ChunkerConfig
impl Clone for ChunkerConfig
Source§fn clone(&self) -> ChunkerConfig
fn clone(&self) -> ChunkerConfig
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 moreSource§impl Debug for ChunkerConfig
impl Debug for ChunkerConfig
Auto Trait Implementations§
impl Freeze for ChunkerConfig
impl RefUnwindSafe for ChunkerConfig
impl Send for ChunkerConfig
impl Sync for ChunkerConfig
impl Unpin for ChunkerConfig
impl UnsafeUnpin for ChunkerConfig
impl UnwindSafe for ChunkerConfig
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