pub struct VoicePreset {
pub name: String,
pub narrator: String,
pub emotions: Vec<EmotionParam>,
pub pitch: Option<i32>,
pub speed: Option<i32>,
}Fields§
§name: String§narrator: String§emotions: Vec<EmotionParam>§pitch: Option<i32>§speed: Option<i32>Implementations§
Source§impl VoicePreset
impl VoicePreset
pub fn get_emotion_string(&self) -> String
Trait Implementations§
Source§impl Clone for VoicePreset
impl Clone for VoicePreset
Source§fn clone(&self) -> VoicePreset
fn clone(&self) -> VoicePreset
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 VoicePreset
impl Debug for VoicePreset
Source§impl<'de> Deserialize<'de> for VoicePreset
impl<'de> Deserialize<'de> for VoicePreset
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
Auto Trait Implementations§
impl Freeze for VoicePreset
impl RefUnwindSafe for VoicePreset
impl Send for VoicePreset
impl Sync for VoicePreset
impl Unpin for VoicePreset
impl UnsafeUnpin for VoicePreset
impl UnwindSafe for VoicePreset
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