pub struct FallbackTavusVoice {
pub caching_enabled: Option<bool>,
pub provider: ProviderTrue,
pub voice_id: TavusVoiceVoiceId,
pub persona_id: Option<String>,
pub callback_url: Option<String>,
pub conversation_name: Option<String>,
pub conversational_context: Option<String>,
pub custom_greeting: Option<String>,
pub properties: Option<TavusConversationProperties>,
pub chunk_plan: Option<ChunkPlan>,
}
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: TavusVoiceVoiceId
§persona_id: Option<String>
This is the unique identifier for the persona that the replica will use in the conversation.
callback_url: Option<String>
This is the url that will receive webhooks with updates regarding the conversation state.
conversation_name: Option<String>
This is the name for the conversation.
conversational_context: Option<String>
This is the context that will be appended to any context provided in the persona, if one is provided.
custom_greeting: Option<String>
This is the custom greeting that the replica will give once a participant joines the conversation.
properties: Option<TavusConversationProperties>
These are optional properties used to customize the conversation.
chunk_plan: Option<ChunkPlan>
This is the plan for chunking the model output before it is sent to the voice provider.
Implementations§
Source§impl FallbackTavusVoice
impl FallbackTavusVoice
pub fn new( provider: ProviderTrue, voice_id: TavusVoiceVoiceId, ) -> FallbackTavusVoice
Trait Implementations§
Source§impl Clone for FallbackTavusVoice
impl Clone for FallbackTavusVoice
Source§fn clone(&self) -> FallbackTavusVoice
fn clone(&self) -> FallbackTavusVoice
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 FallbackTavusVoice
impl Debug for FallbackTavusVoice
Source§impl Default for FallbackTavusVoice
impl Default for FallbackTavusVoice
Source§fn default() -> FallbackTavusVoice
fn default() -> FallbackTavusVoice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FallbackTavusVoice
impl<'de> Deserialize<'de> for FallbackTavusVoice
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
Source§impl PartialEq for FallbackTavusVoice
impl PartialEq for FallbackTavusVoice
Source§impl Serialize for FallbackTavusVoice
impl Serialize for FallbackTavusVoice
impl StructuralPartialEq for FallbackTavusVoice
Auto Trait Implementations§
impl Freeze for FallbackTavusVoice
impl RefUnwindSafe for FallbackTavusVoice
impl Send for FallbackTavusVoice
impl Sync for FallbackTavusVoice
impl Unpin for FallbackTavusVoice
impl UnwindSafe for FallbackTavusVoice
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