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