pub struct ChatAudio {
pub voice: ChatAudioVoice,
pub format: ChatAudioFormat,
}
Fields§
§voice: ChatAudioVoice
The voice the model uses to respond. Supported voices are ash
, ballad
, coral
, sage
, and verse
(also supported but not recommended are alloy
, echo
, and shimmer
; these voices are less expressive).
format: ChatAudioFormat
Specifies the output audio format. Must be one of wav
, mp3
, flac
, opus
, or pcm16
.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChatAudio
impl<'de> Deserialize<'de> for ChatAudio
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
impl StructuralPartialEq for ChatAudio
Auto Trait Implementations§
impl Freeze for ChatAudio
impl RefUnwindSafe for ChatAudio
impl Send for ChatAudio
impl Sync for ChatAudio
impl Unpin for ChatAudio
impl UnwindSafe for ChatAudio
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