pub struct LivekitSmartEndpointingPlan {
pub provider: ProviderTrue,
pub wait_function: Option<String>,
}
Fields§
§provider: ProviderTrue
This is the provider for the smart endpointing plan.
wait_function: Option<String>
This expression describes how long the bot will wait to start speaking based on the likelihood that the user has reached an endpoint. This is a millisecond valued function. It maps probabilities (real numbers on [0,1]) to milliseconds that the bot should wait before speaking ([0, \infty]). Any negative values that are returned are set to zero (the bot can’t start talking in the past). A probability of zero represents very high confidence that the caller has stopped speaking, and would like the bot to speak to them. A probability of one represents very high confidence that the caller is still speaking. Under the hood, this is parsed into a mathjs expression. Whatever you use to write your expression needs to be valid with respect to mathjs @default "20 + 500 * sqrt(x) + 2500 * x^3"
Implementations§
Source§impl LivekitSmartEndpointingPlan
impl LivekitSmartEndpointingPlan
pub fn new(provider: ProviderTrue) -> LivekitSmartEndpointingPlan
Trait Implementations§
Source§impl Clone for LivekitSmartEndpointingPlan
impl Clone for LivekitSmartEndpointingPlan
Source§fn clone(&self) -> LivekitSmartEndpointingPlan
fn clone(&self) -> LivekitSmartEndpointingPlan
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more