pub struct SpeakerVoiceConfig {
pub speaker: String,
pub voice_config: VoiceConfig,
}
Expand description
Configuration for a specific speaker in multi-speaker TTS
Fields§
§speaker: String
The name of the speaker (must match the name used in the prompt)
voice_config: VoiceConfig
Voice configuration for this speaker
Implementations§
Trait Implementations§
Source§impl Clone for SpeakerVoiceConfig
impl Clone for SpeakerVoiceConfig
Source§fn clone(&self) -> SpeakerVoiceConfig
fn clone(&self) -> SpeakerVoiceConfig
Returns a duplicate 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 SpeakerVoiceConfig
impl Debug for SpeakerVoiceConfig
Source§impl<'de> Deserialize<'de> for SpeakerVoiceConfig
impl<'de> Deserialize<'de> for SpeakerVoiceConfig
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 SpeakerVoiceConfig
impl PartialEq for SpeakerVoiceConfig
Source§impl Serialize for SpeakerVoiceConfig
impl Serialize for SpeakerVoiceConfig
impl StructuralPartialEq for SpeakerVoiceConfig
Auto Trait Implementations§
impl Freeze for SpeakerVoiceConfig
impl RefUnwindSafe for SpeakerVoiceConfig
impl Send for SpeakerVoiceConfig
impl Sync for SpeakerVoiceConfig
impl Unpin for SpeakerVoiceConfig
impl UnwindSafe for SpeakerVoiceConfig
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