pub enum VapiAudioFormat {
MuLaw8Khz,
PcmS16Le16Khz,
}Expand description
Raw audio format on the Vapi WebSocket.
Variants§
Implementations§
Source§impl VapiAudioFormat
impl VapiAudioFormat
pub const fn frame_bytes(self) -> usize
pub const fn timestamp_increment(self) -> u32
pub fn codec(self) -> CodecInfo
pub fn capabilities(self) -> CapabilityDescriptor
Trait Implementations§
Source§impl Clone for VapiAudioFormat
impl Clone for VapiAudioFormat
Source§fn clone(&self) -> VapiAudioFormat
fn clone(&self) -> VapiAudioFormat
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 moreimpl Copy for VapiAudioFormat
Source§impl Debug for VapiAudioFormat
impl Debug for VapiAudioFormat
Source§impl Default for VapiAudioFormat
impl Default for VapiAudioFormat
Source§fn default() -> VapiAudioFormat
fn default() -> VapiAudioFormat
Returns the “default value” for a type. Read more
impl Eq for VapiAudioFormat
Source§impl PartialEq for VapiAudioFormat
impl PartialEq for VapiAudioFormat
impl StructuralPartialEq for VapiAudioFormat
Auto Trait Implementations§
impl Freeze for VapiAudioFormat
impl RefUnwindSafe for VapiAudioFormat
impl Send for VapiAudioFormat
impl Sync for VapiAudioFormat
impl Unpin for VapiAudioFormat
impl UnsafeUnpin for VapiAudioFormat
impl UnwindSafe for VapiAudioFormat
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.