pub enum SpeechVoice {
BuiltIn(String),
Custom {
id: String,
},
}Expand description
The voice to use when generating audio.
Variants§
BuiltIn(String)
A built-in voice name, e.g. alloy, ash, coral, or shimmer.
Custom
A custom voice reference, e.g. { "id": "voice_1234" }.
Trait Implementations§
Source§impl Clone for SpeechVoice
impl Clone for SpeechVoice
Source§impl Debug for SpeechVoice
impl Debug for SpeechVoice
Source§impl Default for SpeechVoice
impl Default for SpeechVoice
Source§impl<'de> Deserialize<'de> for SpeechVoice
impl<'de> Deserialize<'de> for SpeechVoice
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 SpeechVoice
impl RefUnwindSafe for SpeechVoice
impl Send for SpeechVoice
impl Sync for SpeechVoice
impl Unpin for SpeechVoice
impl UnsafeUnpin for SpeechVoice
impl UnwindSafe for SpeechVoice
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