pub enum RealtimeSessionOutputAudioFormat {
Pcm16,
G711Ulaw,
G711Alaw,
}
Expand description
The format of output audio. Options are pcm16
, g711_ulaw
, or g711_alaw
.
For pcm16
, output audio is sampled at a rate of 24kHz.
Variants§
Trait Implementations§
Source§impl Clone for RealtimeSessionOutputAudioFormat
impl Clone for RealtimeSessionOutputAudioFormat
Source§fn clone(&self) -> RealtimeSessionOutputAudioFormat
fn clone(&self) -> RealtimeSessionOutputAudioFormat
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 Default for RealtimeSessionOutputAudioFormat
impl Default for RealtimeSessionOutputAudioFormat
Source§fn default() -> RealtimeSessionOutputAudioFormat
fn default() -> RealtimeSessionOutputAudioFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RealtimeSessionOutputAudioFormat
impl<'de> Deserialize<'de> for RealtimeSessionOutputAudioFormat
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
Source§impl PartialEq for RealtimeSessionOutputAudioFormat
impl PartialEq for RealtimeSessionOutputAudioFormat
Source§fn eq(&self, other: &RealtimeSessionOutputAudioFormat) -> bool
fn eq(&self, other: &RealtimeSessionOutputAudioFormat) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for RealtimeSessionOutputAudioFormat
impl StructuralPartialEq for RealtimeSessionOutputAudioFormat
Auto Trait Implementations§
impl Freeze for RealtimeSessionOutputAudioFormat
impl RefUnwindSafe for RealtimeSessionOutputAudioFormat
impl Send for RealtimeSessionOutputAudioFormat
impl Sync for RealtimeSessionOutputAudioFormat
impl Unpin for RealtimeSessionOutputAudioFormat
impl UnwindSafe for RealtimeSessionOutputAudioFormat
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