pub struct RimeAiVoice {
pub caching_enabled: Option<bool>,
pub provider: ProviderTrue,
pub voice_id: RimeAiVoiceVoiceId,
pub model: Option<ModelTrue>,
pub speed: Option<f64>,
pub pause_between_brackets: Option<bool>,
pub phonemize_between_brackets: Option<bool>,
pub reduce_latency: Option<bool>,
pub inline_speed_alpha: Option<String>,
pub chunk_plan: Option<ChunkPlan>,
pub fallback_plan: Option<FallbackPlan>,
}
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: RimeAiVoiceVoiceId
§model: Option<ModelTrue>
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.
pause_between_brackets: Option<bool>
This is a flag that controls whether to add slight pauses using angle brackets. Example: "Hi. <200> I’d love to have a conversation with you." adds a 200ms pause between the first and second sentences.
phonemize_between_brackets: Option<bool>
This is a flag that controls whether text inside brackets should be phonemized (converted to phonetic pronunciation) - Example: "{h’El.o} World" will pronounce "Hello" as expected.
reduce_latency: Option<bool>
This is a flag that controls whether to optimize for reduced latency in streaming. https://docs.rime.ai/api-reference/endpoint/websockets#param-reduce-latency
inline_speed_alpha: Option<String>
This is a string that allows inline speed control using alpha notation. https://docs.rime.ai/api-reference/endpoint/websockets#param-inline-speed-alpha
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 RimeAiVoice
impl RimeAiVoice
pub fn new(provider: ProviderTrue, voice_id: RimeAiVoiceVoiceId) -> RimeAiVoice
Trait Implementations§
Source§impl Clone for RimeAiVoice
impl Clone for RimeAiVoice
Source§fn clone(&self) -> RimeAiVoice
fn clone(&self) -> RimeAiVoice
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more