pub enum Voice {
BuiltIn(String),
Custom {
id: String,
},
}Expand description
The voice the model uses to respond with audio output.
Variants§
BuiltIn(String)
A built-in voice name, e.g. alloy, ash, ballad, coral, echo,
sage, shimmer, or verse.
Custom
A custom voice reference, e.g. { "id": "voice_1234" }.
Trait Implementations§
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