pub struct TavusVoice {
pub caching_enabled: Option<bool>,
pub provider: ProviderTrue,
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§
§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
§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: ProviderTrue, voice_id: TavusVoiceVoiceId) -> TavusVoice
Trait Implementations§
Source§impl Clone for TavusVoice
impl Clone for TavusVoice
Source§fn clone(&self) -> TavusVoice
fn clone(&self) -> TavusVoice
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more