pub struct Voice {
pub voice_id: String,
pub name: String,
pub provider: Option<String>,
pub languages: Option<Vec<String>>,
pub gender: Option<String>,
pub is_cloned: Option<bool>,
pub preview_url: Option<String>,
}Expand description
A voice available for TTS.
Fields§
§voice_id: StringVoice identifier.
name: StringHuman-readable voice name.
provider: Option<String>Provider (e.g. “elevenlabs”, “openai”).
languages: Option<Vec<String>>Language/locale codes supported.
gender: Option<String>Voice gender.
is_cloned: Option<bool>Whether this is a cloned voice.
preview_url: Option<String>Preview audio URL.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Voice
impl<'de> Deserialize<'de> for Voice
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 Voice
impl RefUnwindSafe for Voice
impl Send for Voice
impl Sync for Voice
impl Unpin for Voice
impl UnsafeUnpin for Voice
impl UnwindSafe for Voice
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