pub struct AudioOutput {
pub format: RealtimeAudioFormats,
pub speed: f32,
pub voice: RealtimeVoice,
}Available on crate feature
realtime only.Fields§
§format: RealtimeAudioFormatsThe format of the output audio.
speed: f32The speed of the model’s spoken response as a multiple of the original speed. 1.0 is the default speed. 0.25 is the minimum speed. 1.5 is the maximum speed. This value can only be changed in between model turns, not while a response is in progress.
This parameter is a post-processing adjustment to the audio after it is generated, it’s also possible to prompt the model to speak faster or slower.
voice: RealtimeVoiceThe voice the model uses to respond. Voice cannot be changed during the session once
the model has responded with audio at least once. Current voice options are
alloy, ash, ballad, coral, echo, sage, shimmer, verse, marin, and cedar.
We recommend marin and cedar for best quality.
Trait Implementations§
Source§impl Clone for AudioOutput
impl Clone for AudioOutput
Source§fn clone(&self) -> AudioOutput
fn clone(&self) -> AudioOutput
Returns a duplicate of the value. Read more
1.0.0 · 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 AudioOutput
impl Debug for AudioOutput
Source§impl<'de> Deserialize<'de> for AudioOutput
impl<'de> Deserialize<'de> for AudioOutput
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 AudioOutput
impl RefUnwindSafe for AudioOutput
impl Send for AudioOutput
impl Sync for AudioOutput
impl Unpin for AudioOutput
impl UnwindSafe for AudioOutput
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