pub struct ChatCompletionAudioParam {
pub format: AudioFormat,
pub voice: Voice,
}Expand description
Parameters for audio output of a chat completion.
Fields§
§format: AudioFormatSpecifies the output audio format. Must be one of wav, aac, mp3,
flac, opus, or pcm16.
voice: VoiceThe voice the model uses to respond.
Trait Implementations§
Source§impl Clone for ChatCompletionAudioParam
impl Clone for ChatCompletionAudioParam
Source§fn clone(&self) -> ChatCompletionAudioParam
fn clone(&self) -> ChatCompletionAudioParam
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChatCompletionAudioParam
impl Debug for ChatCompletionAudioParam
Source§impl<'de> Deserialize<'de> for ChatCompletionAudioParam
impl<'de> Deserialize<'de> for ChatCompletionAudioParam
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 ChatCompletionAudioParam
impl RefUnwindSafe for ChatCompletionAudioParam
impl Send for ChatCompletionAudioParam
impl Sync for ChatCompletionAudioParam
impl Unpin for ChatCompletionAudioParam
impl UnsafeUnpin for ChatCompletionAudioParam
impl UnwindSafe for ChatCompletionAudioParam
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