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