pub struct FallbackNeuphonicVoice {
pub caching_enabled: Option<bool>,
pub provider: ProviderTrue,
pub voice_id: NeuphonicVoiceVoiceId,
pub model: Option<ModelTrue>,
pub language: Value,
pub speed: Option<f64>,
pub chunk_plan: Option<ChunkPlan>,
}
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: NeuphonicVoiceVoiceId
§model: Option<ModelTrue>
This is the model that will be used. Defaults to ‘neu_fast’ if not specified.
language: Value
This is the language (ISO 639-1) that is enforced for the model.
speed: Option<f64>
This is the speed multiplier that will be used.
chunk_plan: Option<ChunkPlan>
This is the plan for chunking the model output before it is sent to the voice provider.
Implementations§
Source§impl FallbackNeuphonicVoice
impl FallbackNeuphonicVoice
pub fn new( provider: ProviderTrue, voice_id: NeuphonicVoiceVoiceId, language: Value, ) -> FallbackNeuphonicVoice
Trait Implementations§
Source§impl Clone for FallbackNeuphonicVoice
impl Clone for FallbackNeuphonicVoice
Source§fn clone(&self) -> FallbackNeuphonicVoice
fn clone(&self) -> FallbackNeuphonicVoice
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FallbackNeuphonicVoice
impl Debug for FallbackNeuphonicVoice
Source§impl Default for FallbackNeuphonicVoice
impl Default for FallbackNeuphonicVoice
Source§fn default() -> FallbackNeuphonicVoice
fn default() -> FallbackNeuphonicVoice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FallbackNeuphonicVoice
impl<'de> Deserialize<'de> for FallbackNeuphonicVoice
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 FallbackNeuphonicVoice
impl PartialEq for FallbackNeuphonicVoice
Source§impl Serialize for FallbackNeuphonicVoice
impl Serialize for FallbackNeuphonicVoice
impl StructuralPartialEq for FallbackNeuphonicVoice
Auto Trait Implementations§
impl Freeze for FallbackNeuphonicVoice
impl RefUnwindSafe for FallbackNeuphonicVoice
impl Send for FallbackNeuphonicVoice
impl Sync for FallbackNeuphonicVoice
impl Unpin for FallbackNeuphonicVoice
impl UnwindSafe for FallbackNeuphonicVoice
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