pub struct TavusVoice {
pub provider: Provider,
pub voice_id: TavusVoiceVoiceId,
pub chunk_plan: Option<ChunkPlan>,
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 fallback_plan: Option<FallbackPlan>,
}Fields§
§provider: ProviderThis is the voice provider that will be used.
voice_id: TavusVoiceVoiceId§chunk_plan: Option<ChunkPlan>This is the plan for chunking the model output before it is sent to the voice provider.
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.
fallback_plan: Option<FallbackPlan>This is the plan for voice provider fallbacks in the event that the primary voice provider fails.
Implementations§
Source§impl TavusVoice
impl TavusVoice
pub fn new(provider: Provider, voice_id: TavusVoiceVoiceId) -> TavusVoice
Trait Implementations§
Source§impl Clone for TavusVoice
impl Clone for TavusVoice
Source§fn clone(&self) -> TavusVoice
fn clone(&self) -> TavusVoice
Returns a copy 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 TavusVoice
impl Debug for TavusVoice
Source§impl Default for TavusVoice
impl Default for TavusVoice
Source§fn default() -> TavusVoice
fn default() -> TavusVoice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TavusVoice
impl<'de> Deserialize<'de> for TavusVoice
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 TavusVoice
impl PartialEq for TavusVoice
Source§impl Serialize for TavusVoice
impl Serialize for TavusVoice
impl StructuralPartialEq for TavusVoice
Auto Trait Implementations§
impl Freeze for TavusVoice
impl RefUnwindSafe for TavusVoice
impl Send for TavusVoice
impl Sync for TavusVoice
impl Unpin for TavusVoice
impl UnwindSafe for TavusVoice
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