pub struct AudioOutput {
pub format: RealtimeAudioFormats,
pub speed: f32,
pub voice: RealtimeVoice,
}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. Supported built-in voices are alloy, ash, ballad,
coral, echo, sage, shimmer, verse, marin, and cedar. Voice cannot be changed during
the session once the model has responded with audio at least once. 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 (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 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<AudioOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AudioOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AudioOutput
impl Serialize for AudioOutput
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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 UnsafeUnpin 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