pub struct LmntVoice {
pub caching_enabled: Option<bool>,
pub provider: ProviderTrue,
pub voice_id: LmntVoiceVoiceId,
pub speed: Option<f64>,
pub chunk_plan: Option<ChunkPlan>,
pub fallback_plan: Option<FallbackPlan>,
}
Fields§
§caching_enabled: Option<bool>
This is the flag to toggle voice caching for the assistant.
provider: ProviderTrue
This is the voice provider that will be used.
voice_id: LmntVoiceVoiceId
§speed: Option<f64>
This is the speed multiplier that will be used.
chunk_plan: Option<ChunkPlan>
This is the plan for chunking the model output before it is sent to the voice provider.
fallback_plan: Option<FallbackPlan>
This is the plan for voice provider fallbacks in the event that the primary voice provider fails.
Implementations§
Source§impl LmntVoice
impl LmntVoice
pub fn new(provider: ProviderTrue, voice_id: LmntVoiceVoiceId) -> LmntVoice
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LmntVoice
impl<'de> Deserialize<'de> for LmntVoice
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 LmntVoice
Auto Trait Implementations§
impl Freeze for LmntVoice
impl RefUnwindSafe for LmntVoice
impl Send for LmntVoice
impl Sync for LmntVoice
impl Unpin for LmntVoice
impl UnwindSafe for LmntVoice
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