pub struct FallbackOpenAiVoice {
pub provider: Provider,
pub voice_id: VoiceId,
pub speed: Option<f64>,
pub chunk_plan: Option<Box<ChunkPlan>>,
}Fields§
§provider: ProviderThis is the voice provider that will be used.
voice_id: VoiceIdThis is the provider-specific ID that will be used. Please note that ash, ballad, coral, sage, and verse may only be used with realtime models.
speed: Option<f64>This is the speed multiplier that will be used.
chunk_plan: Option<Box<ChunkPlan>>This is the plan for chunking the model output before it is sent to the voice provider.
Implementations§
Source§impl FallbackOpenAiVoice
impl FallbackOpenAiVoice
pub fn new(provider: Provider, voice_id: VoiceId) -> FallbackOpenAiVoice
Trait Implementations§
Source§impl Clone for FallbackOpenAiVoice
impl Clone for FallbackOpenAiVoice
Source§fn clone(&self) -> FallbackOpenAiVoice
fn clone(&self) -> FallbackOpenAiVoice
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 FallbackOpenAiVoice
impl Debug for FallbackOpenAiVoice
Source§impl Default for FallbackOpenAiVoice
impl Default for FallbackOpenAiVoice
Source§fn default() -> FallbackOpenAiVoice
fn default() -> FallbackOpenAiVoice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FallbackOpenAiVoice
impl<'de> Deserialize<'de> for FallbackOpenAiVoice
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 FallbackOpenAiVoice
impl PartialEq for FallbackOpenAiVoice
Source§impl Serialize for FallbackOpenAiVoice
impl Serialize for FallbackOpenAiVoice
impl StructuralPartialEq for FallbackOpenAiVoice
Auto Trait Implementations§
impl Freeze for FallbackOpenAiVoice
impl RefUnwindSafe for FallbackOpenAiVoice
impl Send for FallbackOpenAiVoice
impl Sync for FallbackOpenAiVoice
impl Unpin for FallbackOpenAiVoice
impl UnwindSafe for FallbackOpenAiVoice
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