pub struct ChunkPlan {
pub enabled: Option<bool>,
pub min_characters: Option<f64>,
pub punctuation_boundaries: Option<Vec<PunctuationBoundaries>>,
pub format_plan: Option<FormatPlan>,
}Fields§
§enabled: Option<bool>This determines whether the model output is chunked before being sent to the voice provider. Default true.
Usage: - To rely on the voice provider’s audio generation logic, set this to false.
- If seeing issues with quality, set this to
true. If disabled, Vapi-provided audio control tokens likewill not work.
min_characters: Option<f64>This is the minimum number of characters in a chunk. Usage: - To increase quality, set this to a higher value.
- To decrease latency, set this to a lower value.
punctuation_boundaries: Option<Vec<PunctuationBoundaries>>These are the punctuations that are considered valid boundaries for a chunk to be created. Usage: - To increase quality, constrain to fewer boundaries.
- To decrease latency, enable all. Default is automatically set to balance the trade-off between quality and latency based on the provider.
format_plan: Option<FormatPlan>This is the plan for formatting the chunk before it is sent to the voice provider.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChunkPlan
impl<'de> Deserialize<'de> for ChunkPlan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ChunkPlan
Auto Trait Implementations§
impl Freeze for ChunkPlan
impl RefUnwindSafe for ChunkPlan
impl Send for ChunkPlan
impl Sync for ChunkPlan
impl Unpin for ChunkPlan
impl UnwindSafe for ChunkPlan
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