pub struct FallbackDeepgramVoice {
pub caching_enabled: Option<bool>,
pub provider: ProviderTrue,
pub voice_id: VoiceIdTrue,
pub model: Option<ModelTrue>,
pub mip_opt_out: Option<bool>,
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: VoiceIdTrue
This is the provider-specific ID that will be used.
model: Option<ModelTrue>
This is the model that will be used. Defaults to ‘aura-2’ when not specified.
mip_opt_out: Option<bool>
If set to true, this will add mip_opt_out=true as a query parameter of all API requests. See https://developers.deepgram.com/docs/the-deepgram-model-improvement-partnership-program#want-to-opt-out This will only be used if you are using your own Deepgram API key. @default false
chunk_plan: Option<ChunkPlan>
This is the plan for chunking the model output before it is sent to the voice provider.
Implementations§
Source§impl FallbackDeepgramVoice
impl FallbackDeepgramVoice
pub fn new( provider: ProviderTrue, voice_id: VoiceIdTrue, ) -> FallbackDeepgramVoice
Trait Implementations§
Source§impl Clone for FallbackDeepgramVoice
impl Clone for FallbackDeepgramVoice
Source§fn clone(&self) -> FallbackDeepgramVoice
fn clone(&self) -> FallbackDeepgramVoice
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FallbackDeepgramVoice
impl Debug for FallbackDeepgramVoice
Source§impl Default for FallbackDeepgramVoice
impl Default for FallbackDeepgramVoice
Source§fn default() -> FallbackDeepgramVoice
fn default() -> FallbackDeepgramVoice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FallbackDeepgramVoice
impl<'de> Deserialize<'de> for FallbackDeepgramVoice
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 FallbackDeepgramVoice
impl PartialEq for FallbackDeepgramVoice
Source§impl Serialize for FallbackDeepgramVoice
impl Serialize for FallbackDeepgramVoice
impl StructuralPartialEq for FallbackDeepgramVoice
Auto Trait Implementations§
impl Freeze for FallbackDeepgramVoice
impl RefUnwindSafe for FallbackDeepgramVoice
impl Send for FallbackDeepgramVoice
impl Sync for FallbackDeepgramVoice
impl Unpin for FallbackDeepgramVoice
impl UnwindSafe for FallbackDeepgramVoice
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