pub struct TtsBody {
pub model_id: Option<String>,
pub text: String,
pub voice_settings: Option<VoiceSettings>,
}Fields§
§model_id: Option<String>Identifier of the model that will be used. Defaults to “eleven_monolingual_v1”
text: StringThe text that will get converted into speech.
voice_settings: Option<VoiceSettings>Voice settings overriding stored setttings for the given voice. They are applied only on the given TTS request. Defaults to None
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TtsBody
impl<'de> Deserialize<'de> for TtsBody
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 TtsBody
impl RefUnwindSafe for TtsBody
impl Send for TtsBody
impl Sync for TtsBody
impl Unpin for TtsBody
impl UnwindSafe for TtsBody
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