pub struct FallbackRimeAiVoice {
pub provider: Provider,
pub voice_id: Box<RimeAiVoiceVoiceId>,
pub model: Option<Model>,
pub speed: Option<f64>,
pub chunk_plan: Option<Box<ChunkPlan>>,
}Fields§
§provider: ProviderThis is the voice provider that will be used.
voice_id: Box<RimeAiVoiceVoiceId>§model: Option<Model>This is the model that will be used. Defaults to ‘v1’ when not specified.
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 FallbackRimeAiVoice
impl FallbackRimeAiVoice
pub fn new( provider: Provider, voice_id: RimeAiVoiceVoiceId, ) -> FallbackRimeAiVoice
Trait Implementations§
Source§impl Clone for FallbackRimeAiVoice
impl Clone for FallbackRimeAiVoice
Source§fn clone(&self) -> FallbackRimeAiVoice
fn clone(&self) -> FallbackRimeAiVoice
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 FallbackRimeAiVoice
impl Debug for FallbackRimeAiVoice
Source§impl Default for FallbackRimeAiVoice
impl Default for FallbackRimeAiVoice
Source§fn default() -> FallbackRimeAiVoice
fn default() -> FallbackRimeAiVoice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FallbackRimeAiVoice
impl<'de> Deserialize<'de> for FallbackRimeAiVoice
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 FallbackRimeAiVoice
impl PartialEq for FallbackRimeAiVoice
Source§impl Serialize for FallbackRimeAiVoice
impl Serialize for FallbackRimeAiVoice
impl StructuralPartialEq for FallbackRimeAiVoice
Auto Trait Implementations§
impl Freeze for FallbackRimeAiVoice
impl RefUnwindSafe for FallbackRimeAiVoice
impl Send for FallbackRimeAiVoice
impl Sync for FallbackRimeAiVoice
impl Unpin for FallbackRimeAiVoice
impl UnwindSafe for FallbackRimeAiVoice
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