#[non_exhaustive]pub enum SpeechFormat {
Mp3,
Opus,
Aac,
Flac,
Wav,
Pcm,
}Expand description
Audio encoding requested from a speech model.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Mp3
MPEG Layer III.
Opus
Opus audio.
Aac
Advanced Audio Coding.
Flac
Free Lossless Audio Codec.
Wav
Waveform Audio File Format.
Pcm
Headerless PCM audio.
Implementations§
Source§impl SpeechFormat
impl SpeechFormat
Sourcepub const fn media_type(self) -> &'static str
pub const fn media_type(self) -> &'static str
Returns the canonical media type.
Trait Implementations§
Source§impl Clone for SpeechFormat
impl Clone for SpeechFormat
Source§fn clone(&self) -> SpeechFormat
fn clone(&self) -> SpeechFormat
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 SpeechFormat
Source§impl Debug for SpeechFormat
impl Debug for SpeechFormat
Source§impl Default for SpeechFormat
impl Default for SpeechFormat
Source§fn default() -> SpeechFormat
fn default() -> SpeechFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SpeechFormat
impl<'de> Deserialize<'de> for SpeechFormat
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
impl Eq for SpeechFormat
Source§impl PartialEq for SpeechFormat
impl PartialEq for SpeechFormat
Source§impl Serialize for SpeechFormat
impl Serialize for SpeechFormat
impl StructuralPartialEq for SpeechFormat
Auto Trait Implementations§
impl Freeze for SpeechFormat
impl RefUnwindSafe for SpeechFormat
impl Send for SpeechFormat
impl Sync for SpeechFormat
impl Unpin for SpeechFormat
impl UnsafeUnpin for SpeechFormat
impl UnwindSafe for SpeechFormat
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