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