pub struct PresetPrompt {
pub emotion_type: String,
pub emotion_preset: Option<EmotionPreset>,
pub emotion_intensity: Option<f64>,
}Expand description
Preset-based emotion control for ssfm-v30 model
Fields§
§emotion_type: StringMust be “preset” for preset-based emotion control
emotion_preset: Option<EmotionPreset>Emotion preset to apply
emotion_intensity: Option<f64>Emotion intensity (0.0 to 2.0, default: 1.0)
Implementations§
Source§impl PresetPrompt
impl PresetPrompt
Sourcepub fn emotion_preset(self, preset: EmotionPreset) -> Self
pub fn emotion_preset(self, preset: EmotionPreset) -> Self
Set the emotion preset
Sourcepub fn emotion_intensity(self, intensity: f64) -> Self
pub fn emotion_intensity(self, intensity: f64) -> Self
Set the emotion intensity (0.0 to 2.0)
Trait Implementations§
Source§impl Clone for PresetPrompt
impl Clone for PresetPrompt
Source§fn clone(&self) -> PresetPrompt
fn clone(&self) -> PresetPrompt
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 PresetPrompt
impl Debug for PresetPrompt
Source§impl Default for PresetPrompt
impl Default for PresetPrompt
Source§impl<'de> Deserialize<'de> for PresetPrompt
impl<'de> Deserialize<'de> for PresetPrompt
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 From<PresetPrompt> for TTSPrompt
impl From<PresetPrompt> for TTSPrompt
Source§fn from(prompt: PresetPrompt) -> Self
fn from(prompt: PresetPrompt) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PresetPrompt
impl RefUnwindSafe for PresetPrompt
impl Send for PresetPrompt
impl Sync for PresetPrompt
impl Unpin for PresetPrompt
impl UnsafeUnpin for PresetPrompt
impl UnwindSafe for PresetPrompt
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